core: simplify syntax for second argument

This commit is contained in:
Sebastien Helleu 2012-12-14 20:44:45 +01:00
parent b2169e9175
commit a64dad2597

View File

@ -34,10 +34,7 @@ if [ $# -eq 0 ]; then
fi
VERSION=$1
TREEISH="HEAD"
if [ $# -gt 1 ]; then
TREEISH=$2
fi
TREEISH=${2:-HEAD}
PREFIX="weechat-${VERSION}/"
FILE="weechat-${VERSION}.tar"