Skip to content

Commit 92fe8f3

Browse files
author
Dougal Ballantyne
committed
Fix: if syntax for pre/post args check
1 parent aceb1a6 commit 92fe8f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bootstrap/src/scripts/boot_as_compute

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RC=0
2727
if [ "${cfn_preinstall}" != "NONE" ]; then
2828
tmpfile=$(mktemp)
2929
wget -qO- ${cfn_preinstall} > $tmpfile || RC=1
30-
if [ "${cfn_preinstall_args}" != "NONE"]; then
30+
if [ "${cfn_preinstall_args}" != "NONE" ]; then
3131
args=${cfn_preinstall_args}
3232
fi
3333
/bin/sh $tmpfile $args || RC=1
@@ -132,7 +132,7 @@ RC=0
132132
if [ "${cfn_postinstall}" != "NONE" ]; then
133133
tmpfile=$(mktemp)
134134
wget -qO- ${cfn_postinstall} > $tmpfile || RC=1
135-
if [ "${cfn_postinstall_args}" != "NONE"]; then
135+
if [ "${cfn_postinstall_args}" != "NONE" ]; then
136136
args=${cfn_postinstall_args}
137137
fi
138138
/bin/sh $tmpfile $args || RC=1

bootstrap/src/scripts/boot_as_master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RC=0
2727
if [ "${cfn_preinstall}" != "NONE" ]; then
2828
tmpfile=$(mktemp)
2929
wget -qO- ${cfn_preinstall} > $tmpfile || RC=1
30-
if [ "${cfn_preinstall_args}" != "NONE"]; then
30+
if [ "${cfn_preinstall_args}" != "NONE" ]; then
3131
args=${cfn_preinstall_args}
3232
fi
3333
/bin/sh $tmpfile $args || RC=1
@@ -208,7 +208,7 @@ RC=0
208208
if [ "${cfn_postinstall}" != "NONE" ]; then
209209
tmpfile=$(mktemp)
210210
wget -qO- ${cfn_postinstall} > $tmpfile || RC=1
211-
if [ "${cfn_postinstall_args}" != "NONE"]; then
211+
if [ "${cfn_postinstall_args}" != "NONE" ]; then
212212
args=${cfn_postinstall_args}
213213
fi
214214
/bin/sh $tmpfile $args || RC=1

0 commit comments

Comments
 (0)