Skip to content

Commit fe106c3

Browse files
committed
bump-rel: set executable
1 parent af23e92 commit fe106c3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bump-rel/bump-rel

100644100755
+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/bash
22
# A simple script to "bump REL".
33
# Do whatever the fuck you want with this script.
44
#
@@ -18,9 +18,10 @@ unset REL
1818
#
1919
# FIXME: does not give two f*cks about duplicate REL=, not pretty, but
2020
# practically, nothing can really go wrong - or can it?
21-
if ! $(grep '^REL=' "$1" > /dev/null); then
22-
echo 'REL=1' >> "$1"
21+
if ! "$(grep -E '^REL=' "$1" >/dev/null)"; then
22+
echo 'REL=1' >>"$1"
2323
else
24+
# shellcheck source=/dev/null
2425
source "$PWD"/"$1"
2526
NEWREL=$(($REL + 1))
2627
sed -e "s|REL=.*|REL=$NEWREL|g" -i "$1"

0 commit comments

Comments
 (0)