From ee2a3ddb8533be653ffd1d2ba5b2f1d1fb28e5e0 Mon Sep 17 00:00:00 2001 From: "Zhang, Dabao" Date: Fri, 20 May 2022 16:04:11 -0400 Subject: [PATCH] Update file_manage.sh --- script/file_manage.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/file_manage.sh b/script/file_manage.sh index 8823b1a..e5ef7db 100644 --- a/script/file_manage.sh +++ b/script/file_manage.sh @@ -7,7 +7,7 @@ forcerm=$2 qyn=0 if [[ $forcerm == T* || $forcerm == t* || $forcerm == Y* || $forcerm == y* ]]; then -echo -e "Please note that the temporary file was force removed" +echo -e "Please note that previously generated temporary files will be flushed..." qyn=1 rm -rf $file fi @@ -17,7 +17,7 @@ while [[ qyn -eq 0 ]]; do qyn=1 if [[ -d $file ]]; then -read -p "$file alreay exists, you could back them up or overwriting them. Overwriting them? Enter Y to overwrite, N to exit. [Y/N]: " yn +read -p "$file alreay exists! Do you want to verwrite them? Enter Y to overwrite, N to exit. [Y/N]: " yn case $yn in Y|Yes|y|yes ) rm -rf $file;; @@ -67,7 +67,7 @@ if [[ ! -f $1 ]]; then echo "The file $1 doesn't exist" exit -1 elif [[ -z $1 ]]; then -echo "The file $1 exists but empty" +echo "The file $1 exists but is empty" exit -1 fi