This commit is contained in:
cremesk 2019-07-29 21:33:53 +02:00
parent d20d71ec50
commit 98e018f751
No known key found for this signature in database
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 2 additions and 2 deletions

4
envs
View File

@ -102,7 +102,7 @@ verify_script_name() {
[[ $(type -P "$1") ]] &&
[[ -x $HOME/bin/$1 ]] ||
error_exit "$1 already exists. rename your script and try again."
[[ -x /tilde/bin/$1 ]] && error_exit "$1 is already taken. rename your script and try again."
[[ -x /envs/bin/$1 ]] && error_exit "$1 is already taken. rename your script and try again."
case $1 in
about|description|list|ls|submit|about|help|apropos|submit|approve)
error_exit "$1 is a subcommand of envs. rename your script and try again." ;;
@ -170,7 +170,7 @@ case $1 in
list | ls)
echo -e "available scripts:\n"
for scr in /tilde/bin/*; do
for scr in /envs/bin/*; do
script_name=$(basename $scr)
target=$(readlink -f "$scr")
echo "$script_name by "$(stat -c '%U' $target)