[devscripts] 04/04: uupdate: shell use -a instead
Osamu Aoki
osamu at moszumanska.debian.org
Mon Nov 16 17:28:58 UTC 2015
This is an automated email from the git hooks/post-receive script.
osamu pushed a commit to branch master
in repository devscripts.
commit fa47c538969b56da8ebdd5baae9767d097a10eef
Author: Osamu Aoki <osamu at debian.org>
Date: Tue Nov 17 02:25:53 2015 +0900
uupdate: shell use -a instead
---
scripts/uupdate.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/uupdate.sh b/scripts/uupdate.sh
index 319d0be..aa55572 100755
--- a/scripts/uupdate.sh
+++ b/scripts/uupdate.sh
@@ -1063,7 +1063,7 @@ else
COMP=${DEBIANFILE##*.}
NEW_DEBIANFILE="${PACKAGE}_${NEW_VERSION}-$SUFFIX.debian.tar.$COMP"
fi
- if [ $OVERWRITE = 0 and -e ${NEW_DEBIANFILE} ]; then
+ if [ $OVERWRITE = 0 -a -e ${NEW_DEBIANFILE} ]; then
echo "$PROGNAME: ${NEW_DEBIANFILE} already exists. Start $PROGNAME with -o to overwrite it." >&2
exit 1
else
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git
More information about the devscripts-devel
mailing list