small fix

This commit is contained in:
fanta 2022-09-26 09:27:59 +02:00
parent dac6f86e77
commit 7a6d16eb7a

View File

@ -1,13 +1,14 @@
#!/bin/bash
# Fanta <fanta@56k.es>
d="/tmp/mednafen"
rm -rf $d ; mkdir -p $d
if [ "$(whoami)" != "root" ]; then
echo "[+] Checking root user"
echo -e "\e[31m\e[1m[NOT OK]\e[0m Run it with root please" && exit
fi
rm -rf $d ; mkdir -p $d
# Debian GNU/Linux 11
cat /etc/issue | grep "Debian GNU/Linux 11" 1>/dev/null ; if [ "$?" -ne 1 ]; then
apt install -y libasound2-dev libflac-dev libsdl2-dev gcc make zlib1g-dev build-essential pkg-config