summaryrefslogtreecommitdiffstats
path: root/auto/scripts
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2013-11-19 15:26:50 +0000
committerTails developers <amnesia@boum.org>2013-11-19 15:49:54 +0000
commitcf109613f4f26fb237ba151ba1332e5544f5f549 (patch)
treeee9903188df793afc257a4a8d59b55535f2f8fcf /auto/scripts
parent7e7c8a757c6a2c11955fe2b76c7a58d8aafa77aa (diff)
Use "git tag -l" to detect if a tag exists.
Testing for .git/refs/tags/$tag existence is fragile, and currently does not work in the stable build on Jenkins.
Diffstat (limited to 'auto/scripts')
-rwxr-xr-xauto/scripts/tails-custom-apt-sources2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto/scripts/tails-custom-apt-sources b/auto/scripts/tails-custom-apt-sources
index e8d0105..fa46960 100755
--- a/auto/scripts/tails-custom-apt-sources
+++ b/auto/scripts/tails-custom-apt-sources
@@ -8,7 +8,7 @@ DEFAULT_COMPONENTS="main"
git_tag_exists() {
local tag="$1"
- test -f ".git/refs/tags/$tag"
+ test -n "$(git tag -l "$tag")"
}
version_was_released() {