mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-06 12:43:39 +01:00
Add "" around variables in test(1) cases to prevent errors when a variable is unset
This commit is contained in:
@@ -56,7 +56,7 @@ verify_template() {
|
||||
|
||||
for _hook in TARGET INCLUDE PRE OVERLAY FSTAB PF PKG SYSRC SERVICE CMD; do
|
||||
_path=${_template_path}/${_hook}
|
||||
if [ -s ${_path} ]; then
|
||||
if [ -s "${_path}" ]; then
|
||||
_hook_validate=$((_hook_validate+1))
|
||||
echo -e "${COLOR_GREEN}Detected ${_hook} hook.${COLOR_RESET}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user