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