Skip to content

Commit

Permalink
make-tag.sh: add file check
Browse files Browse the repository at this point in the history
  • Loading branch information
Samsagax committed Jun 24, 2024
1 parent ca8ce68 commit 57fdfff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion make-tag.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/bash

. linux/PKGBUILD
PKGBUILD_FILE="linux/PKGBUILD"
if [ -f "$PKGBUILD_FILE" ]; then
. "$PKGBUILD_FILE"
else
echo "$PKGBUILD_FILE not found. Are we in the root of the git project?"
exit 1
fi

tagname="v${pkgver%.*}-${pkgver##*.}-${pkgrel}"
if out=$(git status --porcelain) && [ -z "$out" ]; then
Expand Down

0 comments on commit 57fdfff

Please sign in to comment.