u
This commit is contained in:
@@ -26,20 +26,20 @@ else
|
||||
fi
|
||||
echo ""
|
||||
|
||||
echo "=== Enter [path to .gitignore.global.txt] or [leave blank] for default [[`pwd`]]"
|
||||
echo "=== Enter [path to .gitignore.global.txt] or [leave blank] for default [[https://git.faronear.org/npm/sysconfig/raw/branch/main/nixhome/.gitignore.global.txt]]"
|
||||
read -p ">>> " IGNOREPATH
|
||||
if [ "$IGNOREPATH" ]
|
||||
then
|
||||
IGNOREPATH=$(realpath $IGNOREPATH)/.gitignore.global.txt
|
||||
if [ ! -f "$IGNOREPATH" ]
|
||||
then
|
||||
echo "××× Not found [[$IGNOREPATH]]. Exit now..."
|
||||
exit
|
||||
else
|
||||
echo "√√√ IGNOREPATH = [[$IGNOREPATH]]"
|
||||
fi
|
||||
else
|
||||
IGNOREPATH=`pwd`/.gitignore.global.txt
|
||||
fi
|
||||
if [ ! -f "$IGNOREPATH" ]
|
||||
then
|
||||
echo "××× Not found [[$IGNOREPATH]]. Exit now..."
|
||||
exit
|
||||
else
|
||||
echo "√√√ IGNOREPATH = [[$IGNOREPATH]]"
|
||||
IGNOREPATH=https://git.faronear.org/npm/sysconfig/raw/branch/main/nixhome/.gitignore.global.txt
|
||||
fi
|
||||
echo ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user