Skip to content

Commit 1a3f0fd

Browse files
committed
[shellcheck] more fixes
1 parent e3dcb0a commit 1a3f0fd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.shellcheckrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ disable=SC2230
22
disable=SC2236
33
disable=SC2164
44
disable=SC2237
5-
disable=SC2002
5+
disable=SC2002
6+
disable=SC2012

bin/commands/countly.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ countly_upgrade (){
191191
fi
192192
elif [ "$1" == "ee" ]
193193
then
194-
if [ -f "$DIR/../../"countly-enterprise-edition*.tar.gz ]; then
194+
FILE=$(ls -la "$DIR/../../"countly-enterprise-edition*.tar.gz | tail -1 | awk -F' ' '{print $9}')
195+
if [ -f "$FILE" ]; then
195196
cp -Rf "$DIR/../../"plugins/plugins.default.json "$DIR/../../"plugins/plugins.ce.json
196197

197198
echo "Extracting Countly Enterprise Edition..."

0 commit comments

Comments
 (0)