mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-06 03:30:23 +00:00
Modify linux setup script to exit if it has root permissions.
This commit is contained in:
parent
54a0e14ef5
commit
d7218cd301
0
internal/c/libqb/os/lnx/build_test.sh
Normal file → Executable file
0
internal/c/libqb/os/lnx/build_test.sh
Normal file → Executable file
0
internal/c/libqb/os/lnx/setup_build.sh
Normal file → Executable file
0
internal/c/libqb/os/lnx/setup_build.sh
Normal file → Executable file
0
internal/c/parts/audio/conversion/download/libsamplerate-0.1.8/Cfg/ltmain.sh
Normal file → Executable file
0
internal/c/parts/audio/conversion/download/libsamplerate-0.1.8/Cfg/ltmain.sh
Normal file → Executable file
0
internal/c/parts/audio/conversion/download/libsamplerate-0.1.8/autogen.sh
Normal file → Executable file
0
internal/c/parts/audio/conversion/download/libsamplerate-0.1.8/autogen.sh
Normal file → Executable file
0
internal/c/parts/audio/conversion/download/libsamplerate-0.1.8/src/check_asm.sh
Normal file → Executable file
0
internal/c/parts/audio/conversion/download/libsamplerate-0.1.8/src/check_asm.sh
Normal file → Executable file
0
internal/c/parts/audio/conversion/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/audio/conversion/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/audio/conversion/src/check_asm.sh
Normal file → Executable file
0
internal/c/parts/audio/conversion/src/check_asm.sh
Normal file → Executable file
0
internal/c/parts/audio/decode/mp3/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/audio/decode/mp3/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/audio/decode/ogg/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/audio/decode/ogg/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/audio/libresample/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/audio/libresample/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/audio/out/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/audio/out/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/core/download/freeglut-2.8.0/autogen.sh
Normal file → Executable file
0
internal/c/parts/core/download/freeglut-2.8.0/autogen.sh
Normal file → Executable file
0
internal/c/parts/core/download/freeglut-2.8.0/ltmain.sh
Normal file → Executable file
0
internal/c/parts/core/download/freeglut-2.8.0/ltmain.sh
Normal file → Executable file
0
internal/c/parts/core/glew/download/glew-1.10.0/auto/bin/filter_gl_ext.sh
Normal file → Executable file
0
internal/c/parts/core/glew/download/glew-1.10.0/auto/bin/filter_gl_ext.sh
Normal file → Executable file
0
internal/c/parts/core/glew/download/glew-1.10.0/auto/bin/filter_gles_ext.sh
Normal file → Executable file
0
internal/c/parts/core/glew/download/glew-1.10.0/auto/bin/filter_gles_ext.sh
Normal file → Executable file
0
internal/c/parts/core/glew/download/glew-1.10.0/auto/bin/update_ext.sh
Normal file → Executable file
0
internal/c/parts/core/glew/download/glew-1.10.0/auto/bin/update_ext.sh
Normal file → Executable file
0
internal/c/parts/core/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/core/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/core/os/lnx/setup_build.sh
Normal file → Executable file
0
internal/c/parts/core/os/lnx/setup_build.sh
Normal file → Executable file
0
internal/c/parts/video/font/ttf/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/video/font/ttf/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/video/font/ttf/os/lnx/setup_build.sh
Normal file → Executable file
0
internal/c/parts/video/font/ttf/os/lnx/setup_build.sh
Normal file → Executable file
|
@ -30,6 +30,14 @@ DOWNLOAD=
|
|||
#Set this to 1 to compile SDL instead (Only works if DOWNLOAD=1)
|
||||
SDL=
|
||||
|
||||
|
||||
#Make sure we're not running as root
|
||||
if [ $EUID == "0" ]; then
|
||||
echo "You are trying to run this script as root. This is highly unrecommended."
|
||||
echo "This script will prompt you for your sudo password if needed to install packages."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$DOWNLOAD" == "1" ]; then
|
||||
#Various URL's for downloads
|
||||
QB64_URL="http://www.qb64.net/qb64v0978-lnx.tar.gz"
|
||||
|
|
Loading…
Reference in a new issue