mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
16 lines
297 B
Bash
Executable File
16 lines
297 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [[ $TRAVIS_EVENT_TYPE = pull_request || $TRAVIS_EVENT_TPYE = cron ]]; then
|
|
exit 2
|
|
fi
|
|
|
|
# positional args are assumed to be file glob patterns to deploy
|
|
if [[ ${#} -ge 1 ]]; then
|
|
# ensure at least one file exists
|
|
[[ -n "$(ls $@ 2>/dev/null)" ]] || exit 3
|
|
fi
|
|
|
|
echo true
|