0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix: handle versioning when no next-*.ts found (#2202)

This commit is contained in:
Gao Sun 2022-10-19 16:01:49 +08:00 committed by GitHub
parent 79c6c1de93
commit 61336dfbc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,5 +3,7 @@ CURRENT_VERSION=$(node -p "require('./package.json').version.replaceAll('-', '_'
cd alterations
for x in next-*.ts;
do mv $x $CURRENT_VERSION$(echo ${x#next});
do
[ -e "$x" ] || continue; # Skip when no file found (will still loop $x with "next-*.ts")
mv $x $CURRENT_VERSION$(echo ${x#next});
done