20 lines
438 B
Bash
Executable file
20 lines
438 B
Bash
Executable file
#!/bin/sh
|
|
# Load all stock assets into the server.
|
|
#
|
|
# Usage: ./stock/load.sh [--force|-f]
|
|
#
|
|
# Options:
|
|
# --force, -f Update existing assets instead of failing with 409 Conflict
|
|
|
|
# Parse arguments
|
|
FORCE_FLAG=""
|
|
for arg in "$@"; do
|
|
case "$arg" in
|
|
--force|-f)
|
|
FORCE_FLAG="--force"
|
|
;;
|
|
esac
|
|
done
|
|
|
|
(cd avatar && ./upload-stockavatars.sh $FORCE_FLAG)
|
|
(cd props && ./upload-stockprops.sh $FORCE_FLAG)
|