This commit is contained in:
陆柯 2023-01-03 18:41:27 +08:00
parent 84558410dc
commit 9276b32a61
7 changed files with 44 additions and 14 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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