From 86d5237cc0baa755398a3cc118fba75e6ccc6367 Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Thu, 11 Oct 2018 10:37:19 +0100 Subject: [PATCH] Check for interactive shell --- src/freedombone-image | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedombone-image b/src/freedombone-image index 4ac062f75..6ea30283e 100755 --- a/src/freedombone-image +++ b/src/freedombone-image @@ -313,6 +313,11 @@ function mesh_router_setup_script { echo 'WIFI_CHANNEL=9'; } > "$mesh_script_filename" } +if [[ $- != *i* ]]; then + echo $'The image command should be run within an interactive shell' + exit 975683 +fi + while [ $# -gt 1 ] do key="$1" -- GitLab