diff --git a/bin/harbour-storeman-installer b/bin/harbour-storeman-installer index b497e088..b5548ac7 100644 --- a/bin/harbour-storeman-installer +++ b/bin/harbour-storeman-installer @@ -1,4 +1,4 @@ -#!sh +#!/bin/sh set -uFC # "-u" (error when using uninitialised variables), # "-f" (disable pathname expansion) and "-C" (no-clobber / -overwrite). # Ultimately decided against "-e", because this script better runs through, @@ -181,7 +181,7 @@ do setsid --fork sh -c '(i=0; while [ $i -le 9 ] && ps -eo pid | grep -Fq "$1"; do sleep 1; i=$(($i+1)); done; sleep 20;\ printf '\n%s\n' "$(date -Iseconds) [Self-removal] $2";\ systemd-cat -t "$3" -p 6 printf '%s\n' "[Info] Self-removal in 20 seconds: $2";\ - eval $2) &' sh_rm_storeman-installer "$mypid" "$logentry" "$called" + eval $2)' sh_rm_storeman-installer "$mypid" "$logentry" "$called" fi done logentry="pkcon -pvy install harbour-storeman"