From eeeafc466338306acea3cbaa64299ed4c4ef350a Mon Sep 17 00:00:00 2001 From: Mikhail Yumanov Date: Sat, 6 Mar 2021 13:08:50 +0300 Subject: [PATCH] Sugar fixes in comments --- deploy_local_beta/cleanup.sh | 6 ++---- deploy_local_beta/deploy_local_beta.sh | 4 ++-- deploy_local_beta/deploy_local_beta_python2.sh | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/deploy_local_beta/cleanup.sh b/deploy_local_beta/cleanup.sh index a8e566e91..1c8e89725 100644 --- a/deploy_local_beta/cleanup.sh +++ b/deploy_local_beta/cleanup.sh @@ -4,12 +4,12 @@ ANYBETA_SAVE_VENV=1 while (( "$#" )); do case $1 in - -v|--no-save-venv) + -v|--rm-venv) ANYBETA_SAVE_VENV=0 shift ;; -h|--help) - echo "With flag -v|--no-save-venv virtual env will be removed." + echo "With flag -v|--rm-venv virtual env will be removed." ;; *) echo "Error: unknown parameter $1" @@ -21,8 +21,6 @@ done # CLEANUP ######### -cd $ANYBETA_ROOT - # TODO: cleanup django project if test $ANYBETA_SAVE_VENV -eq 0 diff --git a/deploy_local_beta/deploy_local_beta.sh b/deploy_local_beta/deploy_local_beta.sh index 1fb689dee..26b92260a 100644 --- a/deploy_local_beta/deploy_local_beta.sh +++ b/deploy_local_beta/deploy_local_beta.sh @@ -1,11 +1,11 @@ # This file must not be run directly. -# Execute `deploy_local_beta/run.sh` instead. +# Execute `. deploy_local_beta/run.sh` from repository root instead. if ! test $ANYBETA_ROOT then echo "ERROR: This file should not be run directly." - echo "Execute \`deploy_local_beta/run.sh\` instead." + echo "Execute \`. deploy_local_beta/run.sh\` from repository root instead." exit 1 fi diff --git a/deploy_local_beta/deploy_local_beta_python2.sh b/deploy_local_beta/deploy_local_beta_python2.sh index 6b40dbfa9..91901ebfc 100644 --- a/deploy_local_beta/deploy_local_beta_python2.sh +++ b/deploy_local_beta/deploy_local_beta_python2.sh @@ -1,11 +1,11 @@ # This file must not be run directly. -# Execute `deploy_local_beta/run.sh` instead. +# Execute `. deploy_local_beta/run.sh` from repository root instead. if ! test $ANYBETA_ROOT then echo "ERROR: This file should not be run directly." - echo "Execute \`deploy_local_beta/run.sh\` instead." + echo "Execute \`. deploy_local_beta/run.sh\` from repository root instead." exit 1 fi