Skip to content
Snippets Groups Projects
Commit 523b88fd authored by mattijs's avatar mattijs
Browse files

BUG: dash behaviour of set --

parent 70982353
No related merge requests found
......@@ -98,14 +98,20 @@ done
#
build="$WM_PROJECT_DIR/.build"
unset oldVersion oldPackage
#
# retrieve old values from the $WM_PROJECT_DIR/.build cache, stored as
# version [packager]
set -- $(tail -1 $build 2>/dev/null)
oldVersion="$1"; shift
oldPackage="$@"
[ "${oldPackage:-none}" = none ] && unset oldPackage
#
getOldValues()
{
set -- $(tail -1 $build 2>/dev/null)
oldVersion="$1"
[ "$#" -gt 0 ] && shift
oldPackage="$@"
[ "${oldPackage:-none}" = none ] && unset oldPackage
}
#
# printTag - output the build tag
......@@ -148,6 +154,9 @@ else
fi
# retrieve old values
getOldValues
#
# update persistent build tag if possible
#
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment