summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 22:51:04 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 22:51:04 (EDT)
commit06c13b2956e1597fd737574f605a1d883b680f5e (patch)
treeb0c933e00622dc69b6a447bab1593b96ceb95663
parent24759bcc4ef0e8045626ee4a2d530cc51b1a4a19 (diff)
src/vardata.sh: Delimit command operands
-rw-r--r--src/vardata.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vardata.sh b/src/vardata.sh
index 971a22e..4f6ec8d 100644
--- a/src/vardata.sh
+++ b/src/vardata.sh
@@ -35,12 +35,12 @@ init_vardata()
rand
vardatadir="${tmpdir}/${PACKAGE}-$(printf '%010d' ${rand_x})"
- if ! mkdir "${vardatadir}"; then
+ if ! mkdir -- "${vardatadir}"; then
error "$(get_msg 'temp_mkdir_fail')" "${vardatadir}"
return 1
fi
for dir in ${VARDATA_DIRS}; do
- if ! mkdir "${vardatadir}/${dir}"; then
+ if ! mkdir -- "${vardatadir}/${dir}"; then
error "$(get_msg 'temp_mkdir_fail')" \
"${vardatadir}/${dir}"
return 1
@@ -55,13 +55,13 @@ fini_vardata()
local dir=''
for dir in ${VARDATA_DIRS}; do
- if ! rmdir "${vardatadir}/${dir}"; then
+ if ! rmdir -- "${vardatadir}/${dir}"; then
error "$(get_msg 'temp_rmdir_fail')" \
"${vardatadir}/${dir}"
return 1
fi
done
- if ! rmdir "${vardatadir}"; then
+ if ! rmdir -- "${vardatadir}"; then
error "$(get_msg 'temp_rmdir_fail')" "${vardatadir}"
return 1
fi