Logging correction for app delete

This commit is contained in:
Søren Theilgaard
2022-02-02 21:47:59 +01:00
parent f1616d0d02
commit 890c26e2e1

View File

@@ -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