forked from vern/scripts
14 lines
231 B
Plaintext
14 lines
231 B
Plaintext
|
#!/usr/bin/env -S bash -e
|
||
|
|
||
|
[[ -z "$1" ]] && {
|
||
|
printf 'Usage: %s username\n' "$0"
|
||
|
exit 1
|
||
|
}
|
||
|
|
||
|
[[ -f "/var/tmp/register/$1" ]] || {
|
||
|
printf "Application from %s does not exist\n" "$1"
|
||
|
exit 2
|
||
|
}
|
||
|
|
||
|
${EDITOR:-vim} /var/tmp/register/"$1"
|