diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-01-05 18:07:01 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-01-05 18:07:01 -0300 |
commit | 869ca57106526a8e6b2dd67d3fafbb3e7cee4a3b (patch) | |
tree | cd9935026e21598655ee788bf8eccf7950f6352f | |
parent | 37ec8895a3ad8113c2664b94d03280f427b42507 (diff) |
Don't run as root, since it won't work if WORKDIR is not an absolute path
-rwxr-xr-x | librestage | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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() { |