mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 16:53:14 +02:00
core: simplify syntax for second argument
This commit is contained in:
+1
-4
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user