Spaces:
Starting
Starting
Update src/entry.sh
Browse files- src/entry.sh +5 -0
src/entry.sh
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
#!/usr/bin/env bash
|
2 |
set -Eeuo pipefail
|
3 |
|
|
|
1 |
+
if [ "$(id -u)" -ne 0 ]; then
|
2 |
+
echo "Script must be executed with root privileges."
|
3 |
+
exit 1
|
4 |
+
fi
|
5 |
+
|
6 |
#!/usr/bin/env bash
|
7 |
set -Eeuo pipefail
|
8 |
|