From 6e75427dde6e07c7d239c2852999b03ab5b47066 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sat, 4 Jun 2016 23:56:31 +0200 Subject: [PATCH] Checks variables are not empty --- scripts/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index da3f958..46b571a 100644 --- a/scripts/install +++ b/scripts/install @@ -15,6 +15,9 @@ else app=minidlna fi +# Checks variables are not empty +test -z "$version" && (echo "version not set" && touch /force_stop) + # Delete files and db if exit with an error EXIT_PROPERLY () {