Skip to content

Commit 8ee6fce

Browse files
committed
added some more "" quotes to variables to prevent errors from null arguments
1 parent 3cf43f7 commit 8ee6fce

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

autorun/init.arch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ parse_environment(){
111111
done
112112

113113
#Now, we can import the cleaned config and then delete it.
114-
source ${safe_config}
115-
rm -f ${safe_config}
114+
source "${safe_config}"
115+
rm -f "${safe_config}"
116116
}
117117

118118
install_syslinux() {

autorun/init.debian.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,16 @@ parse_environment(){
103103

104104
# Zero check. If after cleaning either the key or value is null, then
105105
# write nothing
106-
[ -z ${key} ] && continue
107-
[ -z ${value} ] && continue
106+
[ -z "${key}" ] && continue
107+
[ -z "${value}" ] && continue
108108

109109
# write sanitized values to temp file
110110
echo "${key}=${value}" >> ${safe_config}
111111
done
112112

113113
#Now, we can import the cleaned config and then delete it.
114-
source ${safe_config}
115-
rm -f ${safe_config}
114+
source "${safe_config}"
115+
rm -f "${safe_config}"
116116
}
117117

118118
install_packages() {

0 commit comments

Comments
 (0)