Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

check for existence of /etc/grml and /live

produces a nicer error when called outside a Grml session
  • Loading branch information...
commit 27c41d72bd54e9f5334269a14a7232534061434f 1 parent 7d188c0
@evgeni evgeni authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 remaster/grml-live-remaster
View
5 remaster/grml-live-remaster
@@ -24,6 +24,11 @@ set -e # exit on any error
VERSION='0.0.2'
GRML_LIVE_EDITOR=${VISUAL:-${EDITOR:-vi}}
+if [ ! -d /etc/grml -o ! -d /live ]; then
+ echo "Error: $0 has to be run from a Grml live session. Exiting."
+ exit 1
+fi
+
# source core functions {{{
. /etc/grml/lsb-functions
. /etc/grml/script-functions
Please sign in to comment.
Something went wrong with that request. Please try again.