misc-scripts/unityextract

6 lines
184 B
Bash
Executable File

#!/bin/sh
set -euf
tar xf "$1"
fd '^asset$' -x sh -c 'SRC="$1"; DESTFILE="$(cat "${SRC%/*}/pathname")"; mkdir -p "UNITYEXTRACT/${DESTFILE%/*}"; mv "$SRC" "UNITYEXTRACT/$DESTFILE"' sh