pikapika/scripts/version.sh

13 lines
230 B
Bash
Raw Permalink Normal View History

2022-02-11 02:06:19 +00:00
# 设置版本号
cd "$( cd "$( dirname "$0" )" && pwd )/.."
if [ "$1" == "set" ] ; then
if [ "$2" != "" ] ; then
echo $2 > lib/assets/version.txt
fi
elif [ "$1" == "unset" ]; then
rm -f lib/assets/version.txt
fi