mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-01-09 05:37:04 +00:00
15 lines
256 B
Bash
Executable file
15 lines
256 B
Bash
Executable file
#!/bin/sh
|
|
cat > /tmp/dwarfhead << 'EOF'
|
|
#!/bin/sh
|
|
DIR=
|
|
if [ ! -d "$DIR" ]; then
|
|
mkdir "$DIR"
|
|
ARG="-o offset=auto -o tidy_strategy=swap -o workers=4"
|
|
dwarfs $ARG "$0" "$DIR" 2>/dev/null
|
|
else
|
|
fusermount -u "$DIR"
|
|
rmdir "$DIR"
|
|
fi
|
|
exit
|
|
EOF
|