This commit is contained in:
Luk Lu
2021-07-18 12:58:42 +08:00
parent 407564e7db
commit b773cc5bcf
3 changed files with 48 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ if [ $1 ]
then
FONPATH=$1
else
read -p "Enter faronear path to git pull (leave blank for default /faronear or ~/faronear or ../..) >> " FONPATH
read -p "Enter faronear path to git pull (leave blank for default [/faronear] or [~/faronear] or [../..]) >> " FONPATH
if [ ! $FONPATH ]
then
if [ -d /faronear ]
@@ -47,4 +47,17 @@ do
cd ..;
fi
done
popd
popd
get_char()
{
SAVEDSTTY=`stty -g`
stty -echo
stty cbreak
dd if=/dev/tty bs=1 count=1 2> /dev/null
stty -raw
stty echo
stty $SAVEDSTTY
}
echo "Press any key to exit!"
char=`get_char`