diff --git a/packages/schemas/update-next.sh b/packages/schemas/update-next.sh index 95961d5c1..edf0c2c71 100755 --- a/packages/schemas/update-next.sh +++ b/packages/schemas/update-next.sh @@ -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