OrbitalBeat/scripts/add.sh

19 lines
378 B
Bash
Raw Normal View History

#!/bin/bash
2022-01-16 16:01:47 +00:00
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
cd "${SCRIPT_DIR}/.."
source .env
DIR="${DATA_MOUNT_PATH}"
if [[ "$1" != "" ]]; then
DIR="$1"
fi
if [[ "${SRG_TASKLIMIT}" != "" ]]; then
find "${DIR}" -type f | docker-compose run --rm -T srg -tasklimit="${SRG_TASKLIMIT}"
else
find "${DIR}" -type f | docker-compose run --rm -T srg
fi