-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
9000-nigtly-stable-switch.bash
executable file
·30 lines (26 loc) · 1.12 KB
/
9000-nigtly-stable-switch.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
source $SRC/lib/functions.sh
TEST_TITLE="Nightly or stable"
TEST_SKIP="true"
[[ $DRY_RUN == true || $BSPSWITCH == "no" ]] && return 0
display_alert "$(basename $BASH_SOURCE)" "${BOARD_NAME}" "info"
remote_exec "apt update; apt -y purge armbian-config; apt -qq -y install armbian-config" "-t" &>/dev/null
case "$r" in
1)
display_alert "Switch to nightly builds, branch current" "................................." "info"
remote_exec "armbian-config main=System selection=Nightly branch=current" "-t" "10m" &>/dev/null
;;
2)
display_alert "Switch to nightly builds, branch dev" "................................." "info"
remote_exec "armbian-config main=System selection=Nightly branch=dev" "-t" "10m" &>/dev/null
;;
9999)
display_alert "Switch to stable builds, branch dev" "................................." "info"
remote_exec "armbian-config main=System selection=Stable branch=dev" "-t" "10m" &>/dev/null
;;
*)
display_alert "Switch to stable builds, branch current" "................................." "info"
remote_exec "armbian-config main=System selection=Stable branch=current" "-t" "10m" &>/dev/null
;;
esac
sleep 20