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