mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-25 05:04:15 +00:00
Logging correction for app delete
This commit is contained in:
@@ -461,7 +461,9 @@ installAppWithPath() { # $1: path to app to install in $targetDir
|
|||||||
if [ -e "$targetDir/$appName" ]; then
|
if [ -e "$targetDir/$appName" ]; then
|
||||||
printlog "Removing existing $targetDir/$appName" DEBUG
|
printlog "Removing existing $targetDir/$appName" DEBUG
|
||||||
deleteAppOut=$(rm -Rfv "$targetDir/$appName" 2>&1)
|
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"
|
deduplicatelogs "$deleteAppOut"
|
||||||
printlog "Debugging enabled, App removing output was:\n$logoutput" DEBUG
|
printlog "Debugging enabled, App removing output was:\n$logoutput" DEBUG
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user