more small fixes

This commit is contained in:
creme 2019-09-05 21:39:19 +02:00
parent 495dbc6270
commit fc7a251da4
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

@ -185,7 +185,7 @@ case "$1" in
;; ;;
submit) submit)
printf "hello, %s! so it's time to submit your script?" "$USER" printf "hello, %s! so it's time to submit your script?\n" "$USER"
submission_checklist submission_checklist
prompt_confirm "are you ready to continue?" || graceful_exit prompt_confirm "are you ready to continue?" || graceful_exit
printf 'enter the name of your script: ' printf 'enter the name of your script: '
@ -194,7 +194,7 @@ case "$1" in
verify_script_name "$script_name" verify_script_name "$script_name"
if [[ -x "$HOME"/bin/"$script_name" ]]; then if [[ -x "$HOME"/bin/"$script_name" ]]; then
printf 'cool, found your script\n' printf '\ncool, found your script\n'
[[ -x /envs/pending-submissions/"$USER"/"$script_name"/"$script_name" ]] && error_exit "you've already submitted $script_name" [[ -x /envs/pending-submissions/"$USER"/"$script_name"/"$script_name" ]] && error_exit "you've already submitted $script_name"
else else
error_exit "$script_name not found in ~/bin" error_exit "$script_name not found in ~/bin"