summarylogtreecommitdiffstats
path: root/setup.sh.in
diff options
context:
space:
mode:
authorJernuh Zakalwe2020-08-03 12:33:44 +0200
committerJernuh Zakalwe2020-08-03 12:33:44 +0200
commit8a4b90d1d5554e9674b53d0fbfc86648ea46a42a (patch)
tree1945b293ae39920e3c5b704270e80d113aa8c7f2 /setup.sh.in
parentcc288c84bcb87508c5d370f5ffde29297579962c (diff)
downloadaur-8a4b90d1d5554e9674b53d0fbfc86648ea46a42a.tar.gz
Workaround for error message about missing roots.pem removed.
File roots.pem from evelauncher directory removed because better one error message about missing this file on start of evelauncher instead a bunch of error messages about failed connections to this server later. In both setup scripts recurring messages removed.
Diffstat (limited to 'setup.sh.in')
-rw-r--r--setup.sh.in29
1 files changed, 13 insertions, 16 deletions
diff --git a/setup.sh.in b/setup.sh.in
index c5d341957c9f..119d767b9603 100644
--- a/setup.sh.in
+++ b/setup.sh.in
@@ -86,9 +86,9 @@ build_lib() {
echo "done."
printf "\nClean up evelauncher directory..."
cd evelauncher/
- rm -f ./*.a ./*.la ./*.prl ./libxcb*
+ rm -f ./*.a ./*.la ./*.pem ./*.prl ./libxcb*
chmod 0755 ./*
- chmod 0644 ./*.qm ./*.pem ./*.conf ./errorpage/*
+ chmod 0644 ./*.qm ./*.conf ./errorpage/*
echo "done."
printf "\nReplace identical files with symbolic links..."
ln -sf evelauncher.sh LogLite.sh
@@ -135,27 +135,24 @@ get_dxvk() {
check_req() {
if [ ! -r "$(find /usr/lib -type f -name 'libxcb-xinerama*' 2>/dev/null)" ] ;then
- printf "\nWarning: libxcb-xinerama needed by evelauncher not found."
- printf "\n\tPlease install libxcb-xinerama with your Package Manager.\n"
- key="nf"
+ req="${req}libxcb-xinerama\n"
fi
if [ ! -x "$(which 7z 2>/dev/null)" ] ;then
- printf "\nError: 7z needed by evebackup not found."
- printf "\n\tPlease install p7zip or p7zip-full with your Package Manager.\n"
- key="nf"
+ req="${req}7z\n"
fi
if [ ! -x "$(which curl 2>/dev/null)" ] ;then
- printf "\n\nError: Curl needed for downloading evelauncher binaries not found."
- printf "\n\tPlease install curl with your Package Manager.\n"
- key="nf"
+ req="${req}curl\n"
fi
if [ ! -x "$(which wine 2>/dev/null)" ] ;then
- printf "\n\nError: Wine not found."
- printf "\n\tPlease install wine with your Package Manager."
- printf "\n\tWineHQ or Developer Version are recommended.\n"
- key="nf"
+ req="${req}wine\n"
+ fi
+ if [ "x$req" != "x" ] ;then
+ printf "\nError: Following requirements are missed:\n"
+ printf "\n$req\n"
+ printf "Please install these requirements with your Package Manager.\n"
+ printf "\nLeaving.\n\n"
+ exit 0
fi
- if [ "x$key" = "xnf" ] ;then printf "\n\nLeaving.\n\n" ;exit 0 ;fi
}
prefix="/usr"