netcdf-c/debug/gitpushoff.sh
Dennis Heimbigner 90f20eb95b debug
2020-12-20 20:37:01 -07:00

19 lines
572 B
Bash
Executable File

#!/bin/sh
if ! test -f travis.yml ; then
if test -f .travis.yml ; then
cp .travis.yml travis.yml
fi
fi
if test -f .travis.yml ; then
git rm .travis.yml
fi
if test -f .github/workflows/run_tests.yml ; then
rm -f .github/workflows/tmp0.yml .github/workflows/tmp1.yml
cp .github/workflows/run_tests.yml .github/workflows/tmp0.yml
cat .github/workflows/tmp0.yml \
| sed -e 's/on: \[pull_request,[ ]*push\]/on: [pull_request]/' \
| cat > .github/workflows/tmp1.yml
rm -f .github/workflows/run_tests.yml
mv .github/workflows/tmp1.yml .github/workflows/run_tests.yml
fi