mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-23 11:49:16 +01:00
Minor Fixes
This commit is contained in:
parent
acd898cdf4
commit
97e5072d9f
@ -281,7 +281,7 @@ fi
|
||||
|
||||
require_su() {
|
||||
if test "$(whoami)" != "root"; then
|
||||
if [ -z "$SUDO" ] && [ "$($SUDO whoami)" != "root" ]; then
|
||||
if [ -z "$SUDO" ] || [ "$($SUDO whoami)" != "root" ]; then
|
||||
echo "ROOT/SUDO is required to run this script"
|
||||
abort
|
||||
fi
|
||||
|
@ -120,7 +120,7 @@ winetricks list-installed | grep -E "^msxml6" >/dev/null 2>&1 || {
|
||||
}
|
||||
WHIPTAIL=$(command -v whiptail 2>/dev/null)
|
||||
DIALOG=$(command -v dialog 2>/dev/null)
|
||||
DIALOG=${WHIPTAIL:DIALOG}
|
||||
DIALOG=${WHIPTAIL:-$DIALOG}
|
||||
function Radiolist {
|
||||
declare -A o="$1"
|
||||
shift
|
||||
|
Loading…
Reference in New Issue
Block a user