Skip to content
Snippets Groups Projects
Commit 86d5237c authored by Bob Mottram's avatar Bob Mottram
Browse files

Check for interactive shell

parent 7e0b1d31
No related branches found
No related tags found
No related merge requests found
...@@ -313,6 +313,11 @@ function mesh_router_setup_script { ...@@ -313,6 +313,11 @@ function mesh_router_setup_script {
echo 'WIFI_CHANNEL=9'; } > "$mesh_script_filename" 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 ] while [ $# -gt 1 ]
do do
key="$1" key="$1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment