From 4d4720a28c920bb4234da093ad0d933feea0973c Mon Sep 17 00:00:00 2001 From: MEUNIER Thibaud Date: Tue, 30 Jan 2024 14:04:53 +0100 Subject: [PATCH] script block accept one argument --- scripts/block.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/block.sh b/scripts/block.sh index d74b646..c07dcea 100755 --- a/scripts/block.sh +++ b/scripts/block.sh @@ -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