git-pull-all 和 npm-boot-all 默认用 ../.. 做根目录

This commit is contained in:
luk.lu
2021-07-02 13:03:02 +08:00
parent 7d38379698
commit ad892e7b24
6 changed files with 24 additions and 17 deletions

View File

@@ -4,14 +4,15 @@ if [ $1 ]
then
FONPATH=$1
else
read -p "Enter path to npm boot (leave blank for default ./) >> " FONPATH
read -p "Enter path to npm boot (leave blank for default ../..) >> " FONPATH
if [ ! $FONPATH ]
then
echo Use default path: ./
FONPATH=./
FONPATH=../..
fi
fi
echo [ Goto %FONPATH as base directory ]
pushd $FONPATH
for org in `ls .`
do