diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2013-05-13 17:50:53 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2013-05-13 17:50:53 +0200 |
commit | 13003601621a3fd7f729ce226a3712a67d4f5658 (patch) | |
tree | 9c38d0276ae518b4c198881988f5eb11386d045f | |
parent | 24c32363705bbf534f08a21a7eef5177acab523f (diff) | |
download | dotfiles-13003601621a3fd7f729ce226a3712a67d4f5658.tar.gz dotfiles-13003601621a3fd7f729ce226a3712a67d4f5658.tar.xz dotfiles-13003601621a3fd7f729ce226a3712a67d4f5658.zip |
Init scripts: fedpkg: conservative preparation
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r-- | scripts/firstrun/20-fedpkg | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/firstrun/20-fedpkg b/scripts/firstrun/20-fedpkg index 01fdaba..3cb349b 100644 --- a/scripts/firstrun/20-fedpkg +++ b/scripts/firstrun/20-fedpkg @@ -22,8 +22,10 @@ for pkg in ${POI}; do ${PKGCMD} clone ${bname} cd ${bname} branch=$(${PKGCMD} switch-branch --list | tail -n2 | head -n1 | cut -d/ -f2) - ${PKGCMD} switch-branch ${branch} - ${PKGCMD} prep # incl. downloading source + if [ "$(git rev-parse --abbrev-ref HEAD)" != "${BRANCH}" ]; then + ${PKGCMD} switch-branch ${branch} + ${PKGCMD} prep # incl. downloading source + fi popd >/dev/null done |