From 539e680240969115da7ee697f032111c7b25316c Mon Sep 17 00:00:00 2001 From: Phantop Date: Fri, 19 Nov 2021 00:26:09 -0500 Subject: [PATCH] slight script cleanup and do more workers --- appdwarf | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/appdwarf b/appdwarf index 137f2e2..607404e 100755 --- a/appdwarf +++ b/appdwarf @@ -14,11 +14,12 @@ dwarf() { mkdwarfs -i "$1" -o "$(basename "$1").sh" -B5 "${@:2}" --header <(cat << 'EOF' #!/bin/sh DIR="$(mktemp -td dwarf_$(basename "$0")XXXXX)" -dwarfs -o offset=auto -o tidy_strategy=swap "$0" "$DIR" 2> /dev/null -export APPDWARF_CMD="$0" +ARG="-o offset=auto -o tidy_strategy=swap -o workers=4" +dwarfs $ARG "$0" "$DIR" 2>/dev/null +export APPDWARF_CMD=$(basename "$0") "$DIR/AppRun" "$@" -fusermount -uz "$DIR" 2> /dev/null -rmdir "$DIR" 2> /dev/null +fusermount -u "$DIR" +rmdir "$DIR" exit EOF )