Bash if statement with syntax error: exclamation mark was outside of []

This commit is contained in:
Cyrus 2020-10-09 11:58:27 -04:00
parent d8da232d6b
commit 04471c9653

View File

@ -40,6 +40,6 @@ DEFAULT_SITE_CONFIG_FILE
fi
ln -s -f /etc/hirs/provisioner/hirs-provisioner.sh /usr/sbin/hirs-provisioner
if ! [ -f "set_tcg_properties.sh" ]; then
if [ ! -f "set_tcg_properties.sh" ]; then
sh ./set_tcg_properties.sh
fi