From 3877f6fd9485cea9a9be17a58634d4dbcee4e597 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Wed, 6 Apr 2016 09:27:46 +0100 Subject: [PATCH] Fix arguments not being passed through to chronometer.sh --- pihole | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pihole b/pihole index 66f967dc..add8a04a 100755 --- a/pihole +++ b/pihole @@ -63,7 +63,8 @@ function setupLCDFunction { } function chronometerFunc { - $SUDO /opt/pihole/chronometer.sh + shift + $SUDO /opt/pihole/chronometer.sh "$@" exit 1 } @@ -106,7 +107,7 @@ case "$1" in "-u" | "updateDashboard" ) updateDashboardFunc;; "-g" | "updateGravity" ) updateGravityFunc;; "-s" | "setupLCD" ) setupLCDFunction;; -"-c" | "chronometer" ) chronometerFunc;; +"-c" | "chronometer" ) chronometerFunc "$@";; "-h" | "help" ) helpFunc;; "uninstall" ) uninstallFunc;; * ) helpFunc;;