git-lfs/rpm/clean.bsh
Andy Neff c1b093bab1 Bump for 0.5.3
Image build off of 0.5.3 instead of master (less docker rebuilding)
Fixed small bug with clean script
Fixed does not delete empty key (less docker rebuilding)
2015-07-23 23:18:36 -04:00

17 lines
333 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
#Emulate the important parts of git clean -xdf for CentOS 6 full build
CWD=$(cd $(dirname ${BASH_SOURCE[0]}); pwd)
rm -rv ${CWD}/BUILD ${CWD}/BUILDROOT ${CWD}/RPMS ${CWD}/SRPMS || :
find ${CWD}/SOURCES -not -name git-lfs.repo -delete || :
rm ${CWD}/SPECS/golang.spec || :
rm ${CWD}/build.log || :