concourse-ssh-resource/src/scripts/get_files.sh
2022-05-06 15:39:34 +02:00

15 lines
232 B
Bash

#!/usr/bin/env sh
set -e
# shellcheck disable=SC2153
directory="${DIRECTORY}"
# shellcheck disable=SC2153
files="${FILES}"
newline_str='
'
(
cd "$directory"
#shellcheck disable=SC2086
IFS="$newline_str" tar c $files
)