#1776 do shift only with at least one argument

This commit is contained in:
tomash 2006-09-07 01:20:00 +00:00
parent 5e3e9da39f
commit e1ea881649
1 changed files with 5 additions and 3 deletions

View File

@ -30,9 +30,11 @@
#DEBUG=yes
#DEBUG_I=yes
COMM=$1
shift
GUNID=$1
if [ "x$1" != "x" ]; then
COMM=$1
shift
GUNID=$1
fi
METADATA="<?xml version=\"1.0\"?>
<audioClip>