diff options
Diffstat (limited to 'src/vardata.sh')
-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 |