Skip to content

Commit 951c571

Browse files
committed
Add "shellrhythm update" to update shellrhythm
- bash script: Added "update", which allows to update the game, and "help", to display the available commands.
1 parent ac373c6 commit 951c571

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

shellrhythm

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,18 @@ elif [ "$1" == "--import" ]
1313
then
1414
echo "Attempting to import $2..."
1515
python ./src/import.py $2
16+
elif [ "$1" == "update" ]
17+
then
18+
read -p "Do you want to update shellrhythm? [Y/n]: " yn
19+
case $yn in
20+
[Yy]*) git pull origin main ;;
21+
[Nn]*) echo "Update aborted." ;;
22+
esac
23+
elif [ "$1" == "help" ]
24+
then
25+
echo "Welcome to shellrhythm!"
26+
echo ""
27+
echo " shellrhythm Starts the game."
28+
echo " shellrhythm --import Imports an online chart."
29+
echo " shellrhythm update Checks for updates, then updates the game."
1630
fi

0 commit comments

Comments
 (0)