From 61f9ae6e6764868d88d2c15ed8101f12edc57795 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 2 Jan 2016 04:31:48 -0500 Subject: [PATCH] Fix shellcheck violation --- debian/postinst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index e6dce02b9..10b8068ad 100755 --- a/debian/postinst +++ b/debian/postinst @@ -60,7 +60,8 @@ case "$1" in systemctl enable dokku-installer fi - if echo $(service dokku-installer status 2> /dev/null || true) | grep -Eq "(inactive|waiting)" > /dev/null; then + installer_status="$(service dokku-installer status 2> /dev/null || true)" + if echo $installer_status | grep -Eq "(inactive|waiting)" > /dev/null; then echo "Starting dokku-installer" service dokku-installer start || echo "Unable to start dokku-installer" fi