Skip to content

Commit

Permalink
fix unnecessary STAMPFILE creation in rmlint.sh
Browse files Browse the repository at this point in the history
when DO_KEEP_DIR_TIMESTAMPS was not set the STAMPFILE was created but not removed
  • Loading branch information
JLuszawski committed May 23, 2020
1 parent d4cb613 commit 2f5f769
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/formats/sh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ fi
USER='%s'
GROUP='%s'

STAMPFILE=$(mktemp 'rmlint.XXXXXXXX.stamp')

# Set to true on -n
DO_DRY_RUN=

Expand Down Expand Up @@ -365,6 +363,7 @@ do
;;
k)
DO_KEEP_DIR_TIMESTAMPS=true
STAMPFILE=$(mktemp 'rmlint.XXXXXXXX.stamp')
;;
*)
usage
Expand Down

0 comments on commit 2f5f769

Please sign in to comment.