Skip to content

Commit a1f72e7

Browse files
committed
Merge pull request #680 from s0undt3ch/develop
Lint fixes
2 parents 71fea04 + 54a389f commit a1f72e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bootstrap-salt.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ __derive_debian_numeric_version() {
654654
INPUT_VERSION="$1"
655655
if echo "$INPUT_VERSION" | grep -q '^[0-9]'; then
656656
NUMERIC_VERSION="$INPUT_VERSION"
657-
elif [ -z "$INPUT_VERSION" -a -f "/etc/debian_version" ]; then
657+
elif [ -z "$INPUT_VERSION" ] && [ -f "/etc/debian_version" ]; then
658658
INPUT_VERSION="$(cat /etc/debian_version)"
659659
fi
660660
if [ -z "$NUMERIC_VERSION" ]; then
@@ -1062,7 +1062,7 @@ __ubuntu_codename_translation() {
10621062
DISTRO_CODENAME="trusty"
10631063
;;
10641064
"15")
1065-
if [ -n $_april ] ; then
1065+
if [ -n "$_april" ]; then
10661066
DISTRO_CODENAME="vivid"
10671067
else
10681068
DISTRO_CODENAME="wily"
@@ -2391,13 +2391,13 @@ install_debian_8_deps() {
23912391
__PACKAGES="procps pciutils"
23922392
# Also install python-requests
23932393
__PACKAGES="${__PACKAGES} python-requests"
2394-
# shellcheck disable=SC2086
23952394

23962395
if [ "$_INSTALL_CLOUD" -eq $BS_TRUE ]; then
23972396
# Install python-libcloud if asked to
23982397
__PACKAGES="${__PACKAGES} python-libcloud"
23992398
fi
24002399

2400+
# shellcheck disable=SC2086
24012401
__apt_get_install_noinput ${__PACKAGES} || return 1
24022402

24032403
if [ "$_UPGRADE_SYS" -eq $BS_TRUE ]; then
@@ -5542,7 +5542,7 @@ if [ "$DAEMONS_RUNNING_FUNC" != "null" ] && [ $_START_DAEMONS -eq $BS_TRUE ]; th
55425542
fi
55435543

55445544

5545-
[ ! "$_SALT_ETC_DIR/$fname" ] && [ $fname != "syndic" ] && echodebug "$_SALT_ETC_DIR/$fname does not exist"
5545+
[ ! -f "$_SALT_ETC_DIR/$fname" ] && [ $fname != "syndic" ] && echodebug "$_SALT_ETC_DIR/$fname does not exist"
55465546

55475547
echodebug "Running salt-$fname by hand outputs: $(nohup salt-$fname -l debug)"
55485548

0 commit comments

Comments
 (0)