From 890c26e2e13d3a044e5950c3026ecd4b50e86ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Wed, 2 Feb 2022 21:47:59 +0100 Subject: [PATCH] Logging correction for app delete --- fragments/functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fragments/functions.sh b/fragments/functions.sh index 691c7e9..6958a13 100644 --- a/fragments/functions.sh +++ b/fragments/functions.sh @@ -461,7 +461,9 @@ installAppWithPath() { # $1: path to app to install in $targetDir if [ -e "$targetDir/$appName" ]; then printlog "Removing existing $targetDir/$appName" DEBUG deleteAppOut=$(rm -Rfv "$targetDir/$appName" 2>&1) - deleteAppOut=$(echo $deleteAppOut | cut -c 1-80) + tempName="$targetDir/$appName" + tempNameLength=$((${#tempName} + 10)) + deleteAppOut=$(echo $deleteAppOut | cut -c 1-$tempNameLength) deduplicatelogs "$deleteAppOut" printlog "Debugging enabled, App removing output was:\n$logoutput" DEBUG fi