diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-08-16 01:38:45 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-08-16 01:38:45 -0700 |
commit | 41daddbacf33c96e560a055f377e9d9cebacb215 (patch) | |
tree | 9b372bc74d56c1e5ba1cf130690df46379ddec1d /pkgbuilds/albion-online-launcher-bin/albion-online | |
parent | 7481461e40d64ae918d586f4b0c3f2feeac6977f (diff) |
remove albion
Diffstat (limited to 'pkgbuilds/albion-online-launcher-bin/albion-online')
-rwxr-xr-x | pkgbuilds/albion-online-launcher-bin/albion-online | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/pkgbuilds/albion-online-launcher-bin/albion-online b/pkgbuilds/albion-online-launcher-bin/albion-online deleted file mode 100755 index ab727ce..0000000 --- a/pkgbuilds/albion-online-launcher-bin/albion-online +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -declare no_group="Please run the next command in your terminal to give user "\ -"${USER} permissions to update Albion game data:\n"\ -"\nsudo usermod -a -G albion ${USER}" -declare no_sudo="Don't run this game as root(sudo)!! it could be a security risk!" - -if [[ "$USER" == "root" ]]; then - echo -e "${no_sudo}" - exit 1 -fi - -if which newgrp; then : -else - echo "A core package \"util-linux\" is required" - exit 2 -fi - -if (( $( id -nG "$USER" | grep -c '\balbion\b' ) )) # Does the user have the permissions to run as group albion? -then - newgrp albion <<< /opt/albion-online-launcher-bin/Albion-Online -else - if zenity \ - --info \ - --text="$no_group"; then : - else - ## Zenity is not installed - echo -e "${no_group}" - fi - exit 4 -fi |