From a412d018af4abb0c7c71dc8a75af84d00ba70481 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 22 Oct 2017 13:30:42 +0200 Subject: [PATCH] Minor change. --- update_nextcloud.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/update_nextcloud.sh b/update_nextcloud.sh index 5ddbbc1..82e12ad 100755 --- a/update_nextcloud.sh +++ b/update_nextcloud.sh @@ -162,6 +162,14 @@ else SYSTEMD_EXISTS=true fi +# - Running in a terminal? +# - +if [[ -t 1 ]] ; then + terminal=true +else + terminal=false +fi + clear echo ""