diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2017-04-19 16:44:34 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2017-04-19 16:44:34 -0700 |
commit | ca94a4ada90b66c0cae1b3e0699c2b7796b14e35 (patch) | |
tree | a3e94e876d8082da4fcb2ab58a4d1ccf4aa9acdf /mastermirror-staging.sh | |
parent | mastermirror-staging: add new timestamp that shows git export point clearly (diff) | |
download | mastermirror-scripts-ca94a4ada90b66c0cae1b3e0699c2b7796b14e35.tar.gz mastermirror-scripts-ca94a4ada90b66c0cae1b3e0699c2b7796b14e35.tar.bz2 mastermirror-scripts-ca94a4ada90b66c0cae1b3e0699c2b7796b14e35.zip |
mastermirror-staging: be stricter about removal
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'mastermirror-staging.sh')
-rwxr-xr-x | mastermirror-staging.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mastermirror-staging.sh b/mastermirror-staging.sh index b72ee65..180417e 100755 --- a/mastermirror-staging.sh +++ b/mastermirror-staging.sh @@ -72,7 +72,7 @@ fetch_git() { timestampfile=${timestampfile:-timestamp.commit} gitdir=${targetdir}.git timestampfile=${gitdir}/$timestampfile - [ -e "$timestampfile" ] && rm -f "$timestampfile" + [ -f "$timestampfile" ] && rm -f "$timestampfile" if [[ ! -d "${targetdir}" ]] ; then # not checked out yet, run initial co mkdir -p "${targetdir}.git" "$gitdir" && \ |