Skip to content

Commit

Permalink
Merge pull request #3 from lsst/tickets/DM-14097-publish-fail
Browse files Browse the repository at this point in the history
fix eupspkg build
  • Loading branch information
jhoblitt committed Apr 13, 2018
2 parents f9c2d2b + 72793d3 commit a86f912
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions ups/eupspkg.cfg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@
# shellcheck disable=SC2034
TAP_PACKAGE=1

switcheroo() {
local func=${1?func name is required}

if [[ -e .git ]]; then
mv .git .git-save
$func
mv .git-save .git
fi
}

build() {
mv .git .git-save
default_build
mv .git-save .git
switcheroo default_build
}

install() {
mv .git .git-save
default_install
mv .git-save .git
switcheroo default_install
}

0 comments on commit a86f912

Please sign in to comment.