1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-15 07:17:17 +00:00
test-tutorial-framework/hack/libhack/common.sh

23 lines
446 B
Bash
Raw Normal View History

pushd() {
command pushd "$@" > /dev/null
}
popd() {
command popd "$@" > /dev/null
}
2019-09-30 13:08:04 +00:00
releasename() {
local version
local date
version="$(cat VERSION | head -n 1)"
date="$(date +%Y%m%d)"
printf "${version}-${date}"
}
force_push_tag() {
git tag -d "${tag}" > /dev/null 2>&1 || :
git push --delete origin "${tag}" > /dev/null 2>&1 || :
git tag -s -m "${description}" "${tag}"
git push origin "${tag}"
}