Skip to content

Commit

Permalink
[updatekernel] changed repo and added exit-choice
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-w committed Aug 17, 2018
1 parent 63228f1 commit df0ba2c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions utils/scripts/r2updatekernel.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

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

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

echo "[x] exit"

read -p "choice: " -n1 choice;
echo
val=${FILES[$choice]}
curl -L $val -O

case $choice in
[0-9]*)
val=${FILES[$choice]}
curl -L $val -O
;;
x) exit
;;
esac

0 comments on commit df0ba2c

Please sign in to comment.