1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-09 00:14:53 +00:00
dotfiles/bin/dwarfmount

7 lines
188 B
Plaintext
Raw Normal View History

#!/bin/sh
2021-05-18 16:50:56 +00:00
DIR=~/dwarf/$(basename "$@" .dwarfs)$RANDOM
mkdir -p "$DIR"
echo "$DIR"
dwarfs -o offset=auto -o tidy_strategy=swap -f "$@" "$DIR" 2> /dev/null
2021-05-18 16:50:56 +00:00
rmdir "$DIR" ~/dwarf 2> /dev/null