windvn/path/wdvn-mod
2022-08-10 02:00:49 +02:00

14 lines
226 B
Bash
Executable File

#!/bin/bash
set -e
if [ -f "$1/modscript" ]; then
source "$1/modscript" "$2"
fi
if [ -d "$1/data" ]; then
cp --reflink=auto -rf "$1/data/." "$2"
fi
if [ -f "$2/chroot" ]; then
wdvn-chroot "$2" "/chroot"
rm "$2/chroot"
fi