Fixed bash griefing over postifx-compatible conditional compounds (#2159)

This commit is contained in:
Gary 2016-06-11 00:37:56 +01:00 committed by Teddy Reed
parent cf30388705
commit 5eee608f62

View File

@ -120,7 +120,7 @@ function main() {
cp $OSQUERY_EXAMPLE_CONFIG_SRC $INSTALL_PREFIX$OSQUERY_EXAMPLE_CONFIG_DST cp $OSQUERY_EXAMPLE_CONFIG_SRC $INSTALL_PREFIX$OSQUERY_EXAMPLE_CONFIG_DST
cp $PACKS_SRC/* $INSTALL_PREFIX/$PACKS_DST cp $PACKS_SRC/* $INSTALL_PREFIX/$PACKS_DST
if [ $OSQUERY_CONFIG_SRC != "" ] && [ -f $OSQUERY_CONFIG_SRC ]; then if [[ $OSQUERY_CONFIG_SRC != "" ]] && [[ -f $OSQUERY_CONFIG_SRC ]]; then
log "config setup" log "config setup"
cp $OSQUERY_CONFIG_SRC $INSTALL_PREFIX/$OSQUERY_ETC_DIR/osquery.conf cp $OSQUERY_CONFIG_SRC $INSTALL_PREFIX/$OSQUERY_ETC_DIR/osquery.conf
fi fi
@ -153,7 +153,7 @@ function main() {
fi fi
POSTINST_CMD="" POSTINST_CMD=""
if [ $OSQUERY_POSTINSTALL != "" ] && [ -f $OSQUERY_POSTINSTALL ]; then if [[ $OSQUERY_POSTINSTALL != "" ]] && [[ -f $OSQUERY_POSTINSTALL ]]; then
POSTINST_CMD="--after-install $OSQUERY_POSTINSTALL" POSTINST_CMD="--after-install $OSQUERY_POSTINSTALL"
fi fi