aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-04-19 16:44:34 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2017-04-19 16:44:34 -0700
commitca94a4ada90b66c0cae1b3e0699c2b7796b14e35 (patch)
treea3e94e876d8082da4fcb2ab58a4d1ccf4aa9acdf
parentmastermirror-staging: add new timestamp that shows git export point clearly (diff)
downloadmastermirror-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>
-rwxr-xr-xmastermirror-staging.sh2
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" && \