From 869ca57106526a8e6b2dd67d3fafbb3e7cee4a3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Thu, 5 Jan 2012 18:07:01 -0300 Subject: Don't run as root, since it won't work if WORKDIR is not an absolute path --- librestage | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/librestage b/librestage index 65ee19b..d8eae19 100755 --- a/librestage +++ b/librestage @@ -21,10 +21,17 @@ # You should have received a copy of the GNU General Public License # along with Parabola. If not, see . + source /etc/libretools.conf custom_config=$XDG_CONFIG_HOME/libretools/libretools.conf [[ -e $custom_config ]] && source $custom_config +if [ -w / ]; then + error "This script should be run as regular user" + exit 1 +fi + + # End Config usage() { -- cgit v1.2.3