change "echo ===" to "echo #<<<" to avoid confusing when searching for ===

This commit is contained in:
Luk
2024-12-13 20:09:17 +08:00
parent 4f1b5809e0
commit c063e02f1e
58 changed files with 328 additions and 265 deletions

View File

@@ -3,22 +3,22 @@
echo "in [REPOROOT]/*/*/hooks/[pre-receive.d|post-receive.d|update.d]/gitea, path is hard-coded in full such as `/faronear/git/gitea/gitea hook --config=/faronear/git/gitea/custom/conf/app.ini`, you need to replace it if the path is changed."
echo "[20230305] noticed that gitea 1.18.5 default is `/usr/local/bin/gitea hook --config=/data/gitea/conf/app.ini`"
echo "=== Enter [old hook path string] or [leave blank] for default '/faronear/git/gitea/gitea':"
read -p ">>> " OLDPATH
echo "#<<< Enter [old hook path string] or [leave blank] for default '/faronear/git/gitea/gitea':"
read -p "#>>> " OLDPATH
if [ ! "$OLDPATH"]
then
OLDPATH=/faronear/git/gitea/gitea
fi
echo "=== Enter [new hook path string] or [leave blank] for default '/usr/local/bin/gitea': "
read -p ">>> " NEWPATH
echo "#<<< Enter [new hook path string] or [leave blank] for default '/usr/local/bin/gitea': "
read -p "#>>> " NEWPATH
if [ ! "$NEWPATH" ]
then
NEWPATH=/usr/local/bin/gitea
fi
echo "=== Enter [root path] of repositories, or [leave blank] for default [[]]`pwd`]] "
read -p ">>> " REPOROOT
echo "#<<< Enter [root path] of repositories, or [leave blank] for default [[]]`pwd`]] "
read -p "#>>> " REPOROOT
if [ "$ROOTPATH"]
then
ROOTPATH=`realpath $ROOTPATH`
@@ -26,8 +26,8 @@ else
ROOTPATH=`pwd`
fi
echo "=== Enter [y] to start updating, or [anything else] to quit"
read -p ">>> " YESNO
echo "#<<< Enter [y] to start updating, or [anything else] to quit"
read -p "#>>> " YESNO
if [ "$YESNO" != 'y' ]
then
exit