From 8236f56c0327e90ec2d5f6250cf43f1f6696a934 Mon Sep 17 00:00:00 2001 From: mpaterakis Date: Mon, 7 Oct 2024 18:55:36 +0300 Subject: [PATCH] Added uninstaller, fixed counter. --- src.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src.sh b/src.sh index ab4cfd6..271fd3a 100644 --- a/src.sh +++ b/src.sh @@ -22,7 +22,7 @@ USE_ZENITY=1 (command -v kdialog >/dev/null || command -v zenity >/dev/null) && [ -n "$DISPLAY" ] && CAN_USE_DIALOGS=1 [ $CAN_USE_DIALOGS -eq 1 ] && ! command -v zenity >/dev/null && USE_ZENITY=0 -# Create cahce directory +# Create cache directory mkdir -p "$CACHE_DIR" # .shellcheck will consume ram trying to parse INNOEXTRACT_BINARY_B64 @@ -700,8 +700,7 @@ umu_launch "$INPUT_INSTALLER" \ # Watch the install log _currentfile=0 -# _filecount=$(("$(get_header_val 'file_count')"+"$(get_header_val 'icon_count')")) -_filecount=219 +_filecount=$(($(get_header_val 'file_count')+$(get_header_val 'icon_count'))) _readlog=1 while [ $_readlog -eq 1 ]; do sleep 0.010 @@ -847,6 +846,18 @@ EOL fi done +# Create uninstaller +cat >"$INSTALL_PATH/uninstall.sh" <