mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
Fixed bash griefing over postifx-compatible conditional compounds (#2159)
This commit is contained in:
parent
cf30388705
commit
5eee608f62
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user