We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a99ee5 commit 3823763Copy full SHA for 3823763
tools/install.sh
@@ -19,6 +19,18 @@
19
# Script that installs Tizonia's debian packages and their dependencies.
20
#
21
22
+# Make sure the installation happens safely
23
+
24
+if [[ "$(id -u)" -eq 0 ]]; then
25
+ if [[ ( -z "$1" ) || ( "$1" != "--safe" ) ]]; then
26
+ echo "WARNING: Running as root; installation aborted."
27
+ echo "Please add '--safe' to bypass this check and continue installing as root."
28
+ exit 1
29
+ else
30
+ echo "WARNING: Running as root with --safe option; installation continues..."
31
+ fi
32
+fi
33
34
# Run the install actions in a subshell
35
(
36
RELIDS=$(cat /etc/*-release)
0 commit comments