summaryrefslogtreecommitdiff
path: root/librestage
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2012-01-21 11:12:01 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2012-01-21 11:12:01 -0300
commit918e09f1a47dc3d23440f08a91d91d31d62dcb5a (patch)
treeeffadb1e2c76d3e06975c92516647148ed9f420a /librestage
parent0e9e94d70a0442e2c0aebdfb282269e90d688712 (diff)
parent971e5b7d0cd614e1be3a82380ef16911f2d9cefe (diff)
Merge branch 'master' into fauno
Conflicts: fullpkg toru
Diffstat (limited to 'librestage')
-rwxr-xr-xlibrestage7
1 files changed, 7 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
+
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() {