standardize: read user input with [key] instead of <key>, [long input] instead of <INPUT>; echo path with [[path]]

This commit is contained in:
Luk Lu
2023-10-10 10:23:51 +08:00
parent c56fb5202f
commit 5253cac12b
26 changed files with 153 additions and 153 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
echo "=== rclone <i> to install, <s> to sync, <c> to copy, <w> to web gui"
echo "=== rclone [i] to install, [s] to sync, [c] to copy, [w] to web gui"
read -p ">>> " ACTION_TYPE
if [ "$ACTION_TYPE" = 'i' ]
then
@@ -23,7 +23,7 @@ then
echo "*****************************"
echo "rclone $RC_CMD $SOURCE_PATH $TARGET_PATH -P -L --create-empty-src-dirs --exclude=._* --exclude=.DS_Store --exclude={node_modules/,.deploy_git/,unpackage/,$EXCLUDING}"
echo "*****************************"
echo "Starting? <y> for yes, <anything else> for quit"
echo "Starting? [y] for yes, [anything else] for quit"
read -p ">>> " YES_OR_NOT
if [ "$YES_OR_NOT" = 'y' ]
then