[devscripts] 04/04: uupdate: shell use -a instead

Nicholas Bamber nicholas at periapt.co.uk
Mon Nov 16 19:29:43 UTC 2015


On 16. 11. 15 17:28, Osamu Aoki wrote:
> 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
>

Osamu,

So I am getting FTBS again. I'll try to familiairise myself with this 
script and give you some feedback. In the meantime you might want to see 
if you find bashdb useful. It's a bash debugger and I took it over a 
little while back.



More information about the devscripts-devel mailing list