Skip to content

Commit 28bf210

Browse files
committed
Do not permit to run "make_release" as root
1 parent eb13fee commit 28bf210

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

make_release

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
22

3+
if [ "`whoami`" == "root" ]; then
4+
echo "Do not run this script with root privileges, your credentials will be asked when needed."
5+
exit
6+
fi
7+
38
# remove additional debug version information at this point
49
sudo rm -rf build dist &> /dev/null
510
sudo find . -name \*.pyc -delete

0 commit comments

Comments
 (0)