cleanup dep check
This commit is contained in:
parent
09ad1ab680
commit
9d7fcd10d8
17
cemutil.sh
17
cemutil.sh
@ -4,6 +4,16 @@ if [ -z "$DISPLAY" ]; then
|
|||||||
export DISPLAY=:0.0
|
export DISPLAY=:0.0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#Check installed software
|
||||||
|
declare -a reqsw=("wine" "bsdtar" "glxinfo")
|
||||||
|
for i in "${reqsw[@]}"
|
||||||
|
do
|
||||||
|
if ! [ -x "$(command -v $i)" ]; then
|
||||||
|
echo "You must install $i"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
if ! $(glxinfo | grep -q "18.3"); then
|
if ! $(glxinfo | grep -q "18.3"); then
|
||||||
if ! $(glxinfo | grep -q "18.2"); then
|
if ! $(glxinfo | grep -q "18.2"); then
|
||||||
echo "You must install at least Mesa 18.2.0"
|
echo "You must install at least Mesa 18.2.0"
|
||||||
@ -11,11 +21,7 @@ if ! $(glxinfo | grep -q "18.3"); then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! [ -x "$(command -v wine)" ]; then
|
#Check that args were used, otherwise print info
|
||||||
echo "You must install wine"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $# -eq 0 ]] ; then
|
if [[ $# -eq 0 ]] ; then
|
||||||
echo "Usage: cemutil.sh cemu.zip cemuhook.zip installdir(optional)"
|
echo "Usage: cemutil.sh cemu.zip cemuhook.zip installdir(optional)"
|
||||||
exit 0
|
exit 0
|
||||||
@ -30,6 +36,7 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Make scripts using installdir if applicable
|
||||||
if [[ "$3" != "" ]]; then
|
if [[ "$3" != "" ]]; then
|
||||||
INSTDIR="$3"
|
INSTDIR="$3"
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user