You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 26, 2024. It is now read-only.
Copy file name to clipboardexpand all lines: LogosLinuxInstaller.sh
+28-8
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
# shellcheck disable=SC2317
3
3
export LOGOS_SCRIPT_TITLE="Logos Linux Installer"# From https://github.com/ferion11/LogosLinuxInstaller
4
4
export LOGOS_SCRIPT_AUTHOR="Ferion11, John Goodman, T. H. Wright"
5
-
export LOGOS_SCRIPT_VERSION="3.7.4"# Script version for this Installer Script
5
+
export LOGOS_SCRIPT_VERSION="3.7.5"# Script version for this Installer Script
6
6
7
7
#####
8
8
# Originally written by Ferion11.
@@ -66,6 +66,18 @@ Options:
66
66
EOF
67
67
}
68
68
69
+
die-if-running() {
70
+
PIDF=/tmp/LogosLinuxInstaller.pid
71
+
72
+
if [ -f"${PIDF}" ];then
73
+
if logos_continue_question "The script is already running on PID $(cat "${PIDF}"). Should it be killed to allow this instance to run?""The script is already running. Exiting.""1";then
74
+
kill -9 "$(cat "${PIDF}")"
75
+
fi
76
+
fi
77
+
trap'rm -f -- "${PIDF}"' EXIT
78
+
echo$$>"${PIDF}"
79
+
}
80
+
69
81
die-if-root() {
70
82
if [ "$(id -u)"-eq'0' ] && [ -z"${LOGOS_FORCE_ROOT}" ];then
71
83
logos_error "Running Wine/winetricks as root is highly discouraged. Use -f|--force-root if you must run as root. See https://wiki.winehq.org/FAQ#Should_I_run_Wine_as_root.3F"
0 commit comments