diff options
author | Patrick 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) |
commit | 06c13b2956e1597fd737574f605a1d883b680f5e (patch) | |
tree | b0c933e00622dc69b6a447bab1593b96ceb95663 /src | |
parent | 24759bcc4ef0e8045626ee4a2d530cc51b1a4a19 (diff) |
src/vardata.sh: Delimit command operands
Diffstat (limited to 'src')
-rw-r--r-- | src/vardata.sh | 8 |
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 |