This commit is contained in:
hl committed 2024-11-05 01:46:08 +08:00
1 parent 40ddaaa1c7
commit d6fba3a5cf
1 file changed
+8
+8
View File
@@ -92,6 +92,14 @@ main(){
echo "Installing..."
echo "From: $CWD"
echo "To: $PROG_PATH/"
if [ ! -d $PROG_PATH ]; then
if [ -e $PROG_PATH ]; then
echo "Program path is not directory!"
exit 1
else
mkdir -p $PROG_PATH
fi
fi
if [ -z $PROG_NAME ]; then
cp -fr * "$PROG_PATH/"
else