Browse Source

script block accept one argument

master
MEUNIER Thibaud 1 year ago
parent
commit
4d4720a28c
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      scripts/block.sh

+ 5
- 1
scripts/block.sh 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

Loading…
Cancel
Save