DataHoarder
d3b5f5ac01
All checks were successful
continuous-integration/drone/push Build is passing
19 lines
378 B
Bash
Executable file
19 lines
378 B
Bash
Executable file
#!/bin/bash
|
|
|
|
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
|
|
|