|
1 | 1 | #!/usr/bin/env bash
|
2 | 2 |
|
3 |
| -AMVERSION="9.8-1" |
| 3 | +AMVERSION="9.8.1" |
4 | 4 |
|
5 | 5 | # Determine main repository and branch
|
6 | 6 | AMREPO="https://raw.githubusercontent.com/ivan-hc/AM/main"
|
@@ -832,13 +832,14 @@ _use_appman() {
|
832 | 832 | echo "$DIVIDING_LINE"
|
833 | 833 | else
|
834 | 834 | [ ! -f "$APPMANCONFIG"/appman-mode ] && mkdir -p "$APPMANCONFIG" && touch "$APPMANCONFIG"/appman-mode
|
835 |
| - _appman && printf "%b\n" "$APPMAN_MSG" |
| 835 | + _appman && [ -z "$IMMUTABLE_ON" ] && printf "%b\n" "$APPMAN_MSG" |
836 | 836 | fi
|
837 | 837 | }
|
838 | 838 |
|
839 | 839 | if [ "$AMCLI" = am ]; then
|
| 840 | + uname -a | grep -qi "Linux deck \|Linux steamdeck " && IMMUTABLE_ON="1" && [ ! -f "$APPMANCONFIG"/appman-mode ] && mkdir -p "$APPMANCONFIG" && touch "$APPMANCONFIG"/appman-mode |
840 | 841 | if [ -f "$APPMANCONFIG"/appman-mode ]; then
|
841 |
| - [ ! -f "$APPMANCONFIG"/appman-config ] && printf "%b\n" "$APPMAN_MSG" |
| 842 | + [ ! -f "$APPMANCONFIG"/appman-config ] && [ -z "$IMMUTABLE_ON" ] && printf "%b\n" "$APPMAN_MSG" |
842 | 843 | _appman
|
843 | 844 | AMCLIPATH="$CLI_PATH"
|
844 | 845 | elif [ ! -w "$AMPATH" ]; then
|
@@ -1394,7 +1395,7 @@ case "$1" in
|
1394 | 1395 | MODULE="install.am"
|
1395 | 1396 | _online_check
|
1396 | 1397 | _check_fedora_mess
|
1397 |
| - [ "$CLI" = am ] && [ -f "$APPMANCONFIG"/appman-mode ] && printf "%b\n" "$APPMAN_MSG" |
| 1398 | + [ "$CLI" = am ] && [ -f "$APPMANCONFIG"/appman-mode ] && [ -z "$IMMUTABLE_ON" ] && printf "%b\n" "$APPMAN_MSG" |
1398 | 1399 | _use_module "$@"
|
1399 | 1400 | ;;
|
1400 | 1401 | 'sandbox'|'--sandbox'|'--disable-sandbox')
|
@@ -1480,7 +1481,7 @@ case "$1" in
|
1480 | 1481 | ################################################################################################################################################################
|
1481 | 1482 |
|
1482 | 1483 | _use_help() {
|
1483 |
| - [ "$CLI" = am ] && [ -f "$APPMANCONFIG"/appman-mode ] && printf "%b\n" "$APPMAN_MSG" |
| 1484 | + [ "$CLI" = am ] && [ -f "$APPMANCONFIG"/appman-mode ] && [ -z "$IMMUTABLE_ON" ] && printf "%b\n" "$APPMAN_MSG" |
1484 | 1485 | echo -e $"
|
1485 | 1486 | NAME: ${Green}$AMCLIUPPER\033[0m VERSION: ${Green}$AMVERSION\033[0m
|
1486 | 1487 |
|
|
0 commit comments