From 9276b32a615dc901bc1b112df353c3aa5ef731ce Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Tue, 3 Jan 2023 18:41:27 +0800 Subject: [PATCH] u --- git-pull-all.sh | 8 ++++++-- git-pull-recursive.sh | 8 ++++++-- git-push-all.sh | 8 ++++++-- git-push-recursive.sh | 9 +++++++-- git-rename-branch.sh | 9 +++++++-- npm-boot-all.sh | 8 ++++++-- npm-boot-recursive.sh | 8 ++++++-- 7 files changed, 44 insertions(+), 14 deletions(-) diff --git a/git-pull-all.sh b/git-pull-all.sh index 1fb3529..6df6df0 100755 --- a/git-pull-all.sh +++ b/git-pull-all.sh @@ -1,8 +1,9 @@ #!/bin/bash testpath1=/faronear -testpath2=~/faronear -testpath3=/mnt/d/faronear +testpath2=~/faronear.git +testpath3=~/faronear +testpath4=/mnt/d/faronear if [ "$1" ] then @@ -16,6 +17,9 @@ then elif [ -d $testpath3 ] then FONPATH=$testpath3 +elif [ -d $testpath4 ] +then + FONPATH=$testpath4 else echo "=== Enter [target path] or leave [blank] for default to '.'" read -p ">>> " FONPATH diff --git a/git-pull-recursive.sh b/git-pull-recursive.sh index 655022a..b60630d 100755 --- a/git-pull-recursive.sh +++ b/git-pull-recursive.sh @@ -1,8 +1,9 @@ #!/bin/bash testpath1=/faronear -testpath2=~/faronear -testpath3=/mnt/d/faronear +testpath2=~/faronear.git +testpath3=~/faronear +testpath4=/mnt/d/faronear if [ "$1" ] then @@ -16,6 +17,9 @@ then elif [ -d $testpath3 ] then FONPATH=$testpath3 +elif [ -d $testpath4 ] +then + FONPATH=$testpath4 else echo "=== Enter [target path] or leave [blank] for default to '.'" read -p ">>> " FONPATH diff --git a/git-push-all.sh b/git-push-all.sh index 72a237c..aec05ad 100755 --- a/git-push-all.sh +++ b/git-push-all.sh @@ -1,8 +1,9 @@ #!/bin/bash testpath1=/faronear -testpath2=~/faronear -testpath3=/mnt/d/faronear +testpath2=~/faronear.git +testpath3=~/faronear +testpath4=/mnt/d/faronear if [ "$1" ] then @@ -16,6 +17,9 @@ then elif [ -d $testpath3 ] then FONPATH=$testpath3 +elif [ -d $testpath4 ] +then + FONPATH=$testpath4 else echo "=== Enter [target path] or leave [blank] for default to '.'" read -p ">>> " FONPATH diff --git a/git-push-recursive.sh b/git-push-recursive.sh index 9f9a8a9..6cd2de4 100755 --- a/git-push-recursive.sh +++ b/git-push-recursive.sh @@ -1,8 +1,9 @@ #!/bin/bash testpath1=/faronear -testpath2=~/faronear -testpath3=/mnt/d/faronear +testpath2=~/faronear.git +testpath3=~/faronear +testpath4=/mnt/d/faronear if [ "$1" ] then @@ -16,6 +17,10 @@ then elif [ -d $testpath3 ] then FONPATH=$testpath3 +elif [ -d $testpath4 ] +then + FONPATH=$testpath4 + else echo "=== Enter [target path] or leave [blank] for default to '.'" read -p ">>> " FONPATH diff --git a/git-rename-branch.sh b/git-rename-branch.sh index 691600a..9454592 100755 --- a/git-rename-branch.sh +++ b/git-rename-branch.sh @@ -1,8 +1,9 @@ #!/bin/bash testpath1=/faronear -testpath2=~/faronear -testpath3=/mnt/d/faronear +testpath2=~/faronear.git +testpath3=~/faronear +testpath4=/mnt/d/faronear if [ "$1" ] then @@ -16,6 +17,10 @@ then elif [ -d $testpath3 ] then FONPATH=$testpath3 +elif [ -d $testpath4 ] +then + FONPATH=$testpath4 + else echo "=== Enter [target path] or leave [blank] for default to '.'" read -p ">>> " FONPATH diff --git a/npm-boot-all.sh b/npm-boot-all.sh index 696f71f..bbebabe 100755 --- a/npm-boot-all.sh +++ b/npm-boot-all.sh @@ -1,8 +1,9 @@ #!/bin/bash testpath1=/faronear -testpath2=~/faronear -testpath3=/mnt/d/faronear +testpath2=~/faronear.git +testpath3=~/faronear +testpath4=/mnt/d/faronear if [ "$1" ] then @@ -16,6 +17,9 @@ then elif [ -d $testpath3 ] then FONPATH=$testpath3 +elif [ -d $testpath4 ] +then + FONPATH=$testpath4 else echo "=== Enter [target path] or leave [blank] for default to '.'" read -p ">>> " FONPATH diff --git a/npm-boot-recursive.sh b/npm-boot-recursive.sh index d0d5f6c..869ca6c 100755 --- a/npm-boot-recursive.sh +++ b/npm-boot-recursive.sh @@ -1,8 +1,9 @@ #!/bin/bash testpath1=/faronear -testpath2=~/faronear -testpath3=/mnt/d/faronear +testpath2=~/faronear.git +testpath3=~/faronear +testpath4=/mnt/d/faronear if [ "$1" ] then @@ -16,6 +17,9 @@ then elif [ -d $testpath3 ] then FONPATH=$testpath3 +elif [ -d $testpath4 ] +then + FONPATH=$testpath4 else echo "=== Enter [target path] or leave [blank] for default to '.'" read -p ">>> " FONPATH