From 99b111c59bdcaa4fb1991397b14b4c8bbe08c680 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..bc3a6959de 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