mirror of
https://git.rockylinux.org/rocky/pungi-rocky.git
synced 2024-11-28 15:46:25 +00:00
18 lines
354 B
Bash
18 lines
354 B
Bash
#!/bin/bash
|
|
#git branch -D r10-beta
|
|
TOSET="$1"
|
|
|
|
if [ -z "$TOSET" ]; then
|
|
echo "empty version"
|
|
exit 12
|
|
fi
|
|
|
|
git branch -D r10-beta
|
|
git checkout -b r10-beta
|
|
sed -i "/^VERSION/ s/9-lh/$TOSET/g" rocky/variables.conf
|
|
sed -i "s/r9s/r9-beta/g" rocky/variables.conf
|
|
git add -A
|
|
git commit -m "Set to $TOSET and prep"
|
|
|
|
echo "Use git push -f to push to r9-beta"
|