Abort Shorewall-core's installer execution if no Rc file is detected. - Correct the error message
Signed-off-by: Matt Darfeuille <[email protected]> --- Shorewall-core/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Shorewall-core/install.sh b/Shorewall-core/install.sh index 6bbd7b2..0fe9bf3 100755 --- a/Shorewall-core/install.sh +++ b/Shorewall-core/install.sh @@ -247,7 +247,7 @@ case "$HOST" in esac if [ -z "$file" ]; then - if $HOST = linux; then + if [ $HOST = linux ]; then file=shorewallrc.default else file=shorewallrc.${HOST} @@ -260,7 +260,8 @@ if [ -z "$file" ]; then echo "" >&2 echo "Example:" >&2 echo "" >&2 - echo " ./install.sh $file" &>2 + echo " ./install.sh $file" >&2 + exit 1 fi if [ -n "$DESTDIR" ]; then -- 2.8.3 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
