From f0495c7e0f5868fa6769e74752e428c15635e4ed Mon Sep 17 00:00:00 2001 From: Mason James Date: Thu, 23 Mar 2023 23:44:42 +1300 Subject: [PATCH] Bug 31729: fix quoting and set sh --- debian/scripts/koha-watcher | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/scripts/koha-watcher b/debian/scripts/koha-watcher index 6c25928628..9a10935739 100755 --- a/debian/scripts/koha-watcher +++ b/debian/scripts/koha-watcher @@ -1,4 +1,4 @@ -#!/bin/dash +#!/bin/sh # # koha-watcher -- Restart starman when a file is modified. # Copyright 2022 Mason James @@ -75,7 +75,7 @@ start_reload_loop() { while true; do # restart, if logfile exists if [ -e "$tmpfile" ]; then - kill -s HUP $(cat /var/run/koha/"$instance"/plack.pid) + kill -s HUP $(cat "/var/run/koha/{$instance}/plack.pid") rm "$tmpfile" fi sleep $sec -- 2.30.2