script block accept one argument

This commit is contained in:
2024-01-30 14:04:53 +01:00
parent cdb520e032
commit 4d4720a28c
+5 -1
View File
@@ -38,7 +38,11 @@ then
echec
fi
BLOCK=`grep LAST $DATA_PATH/block_list.txt | awk '{print $2}'`
BLOCK=$1
if [ -z "$BLOCK" ]
then
BLOCK=`grep LAST $DATA_PATH/block_list.txt | awk '{print $2}'`
fi
echo $BLOCK
cd $APPS_PATH/info