1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-03 12:03:49 +00:00
dotfiles/.local/bin/dwarfmount

7 lines
166 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 -f "$@" "$DIR" 2> /dev/null
rmdir "$DIR" ~/dwarf 2> /dev/null