talos/hack/fix-artifacts.sh

13 lines
290 B
Bash
Raw Normal View History

#!/usr/bin/env bash
for platform in $(tr "," "\n" <<< "${PLATFORM}"); do
echo ${platform}
directory="${platform//\//_}"
if [[ -d "${ARTIFACTS}/${directory}" ]]; then
mv "${ARTIFACTS}/${directory}/"* ${ARTIFACTS}
rmdir "${ARTIFACTS}/${directory}/"
fi
done