From 06c13b2956e1597fd737574f605a1d883b680f5e Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 22:51:04 -0400 Subject: src/vardata.sh: Delimit command operands --- (limited to 'src') 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 -- cgit v0.9.1