X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=remaster%2Fgrml-live-remaster;h=39cc81b28d0c172fb8b1ee0ac051b4be2ea7ff07;hp=456dbab2f557e3f7283061d4e6981715067c1129;hb=27c41d72bd54e9f5334269a14a7232534061434f;hpb=7d188c042351f063f2ab775d7ceaff99f66adf89 diff --git a/remaster/grml-live-remaster b/remaster/grml-live-remaster index 456dbab..39cc81b 100755 --- a/remaster/grml-live-remaster +++ b/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