Skip to content

Commit df0ba2c

Browse files
committed
[updatekernel] changed repo and added exit-choice
1 parent 63228f1 commit df0ba2c

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

utils/scripts/r2updatekernel.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
GITHUB_RELEASES_PAGE="https://api.github.com/repos/RamonSmit/BPI-R2-4.14/releases/latest"
3+
GITHUB_RELEASES_PAGE="https://api.github.com/repos/frank-w/BPI-R2-4.14/releases/latest"
44

55
if ! [ -x "$(command -v jq)" ]; then
66
echo "Please install jq (https://stedolan.github.io/jq/download/)";
@@ -33,8 +33,15 @@ do
3333
fi
3434
done
3535

36+
echo "[x] exit"
37+
3638
read -p "choice: " -n1 choice;
3739
echo
38-
val=${FILES[$choice]}
39-
curl -L $val -O
40-
40+
case $choice in
41+
[0-9]*)
42+
val=${FILES[$choice]}
43+
curl -L $val -O
44+
;;
45+
x) exit
46+
;;
47+
esac

0 commit comments

Comments
 (0)