#!/usr/bin/env bash upload=1 if [ "$1" == "--noupload" ]; then upload=0; shift; fi filepp -lc "\\NL" "$@" bin-templates/start > bin/start filepp -lc "\\NL" "$@" config-templates/default.cfg > config/default.cfg chmod u+x bin/start if [ $upload -eq 1 ] then rsync -avze "ssh -i mhack-www-data -o StrictHostKeyChecking=no" wad/*.WAD wad/*.wad iwad/*.WAD iwad/*.wad www-data@mhack.io:/var/www/html/wads/ rsync -va --delete --include='*/' --exclude='*.bak' --exclude '*git*' --exclude='*~' --exclude='*fuse*' wad iwad bin config player /mnt/user/appdata/docker-doom/ docker restart docker-doom fi