1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-23 21:56:45 +00:00
dotfiles/bin/dwarfmount

7 lines
188 B
Bash
Executable file

#!/bin/sh
DIR=~/dwarf/$(basename "$@" .dwarfs)$RANDOM
mkdir -p "$DIR"
echo "$DIR"
dwarfs -o offset=auto -o tidy_strategy=swap -f "$@" "$DIR" 2> /dev/null
rmdir "$DIR" ~/dwarf 2> /dev/null