diff options
author | Yeliz Taneroğlu <yeliztaneroglu@gmail.com> | 2017-05-16 15:11:06 +0300 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-05-20 11:41:56 +0200 |
commit | 46a30d5eb89a7198f30a895ac92ab5d70d111511 (patch) | |
tree | 01357d8e7dc5c267f020a3491be2e6c9120350f2 /setup_native | |
parent | 027d661ef7e2490f1182d3e5003ae4da4135e0ca (diff) |
tdf#105204 fix shellcheck warning in setup_native/scripts/unpack_update.sh
Change-Id: Ic2a3b58dac3bc148cf9a2bd8237574d4851aabe6
SC2006: Use $(STATEMENT) instead of legacy `STATEMENT`
SC2035: Use ./*glob* or -- *glob* so names with dashes won't become options.
Reviewed-on: https://gerrit.libreoffice.org/37681
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'setup_native')
-rw-r--r-- | setup_native/scripts/unpack_update.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setup_native/scripts/unpack_update.sh b/setup_native/scripts/unpack_update.sh index 1b7b53430503..1af4865cd308 100644 --- a/setup_native/scripts/unpack_update.sh +++ b/setup_native/scripts/unpack_update.sh @@ -27,7 +27,7 @@ NUM=1 DESTPATH="$BASEDIR/$FOLDER" while [ -d "$DESTPATH" ]; do - NUM=`expr $NUM + 1` + NUM=$(expr $NUM + 1) DESTPATH="$BASEDIR/$FOLDER-$NUM" done @@ -47,4 +47,4 @@ else exit 2 fi -UPDATE=`eval ls */update` && SUBFOLDER=`dirname $UPDATE` && mv $SUBFOLDER/* . && rmdir $SUBFOLDER && echo "$DESTPATH/update" +UPDATE=$(eval ls ./*/update) && SUBFOLDER=$(dirname $UPDATE) && mv $SUBFOLDER/* . && rmdir $SUBFOLDER && echo "$DESTPATH/update" |