Skip to content

Commit 8e5bf14

Browse files
committed
Require root access for requirements installer script
1 parent 7409609 commit 8e5bf14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

install-requirements.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/bin/bash
22
set -e
33

4+
if [[ $UID != 0 ]]; then
5+
echo "Please run this script with sudo:"
6+
echo "sudo $0 $*"
7+
exit 1
8+
fi
9+
410
if [[ "$OSTYPE" == "linux-gnu" ]]; then
511
# install requirements
612
export DEBIAN_FRONTEND=noninteractive

0 commit comments

Comments
 (0)