Skip to content

Commit 08a5e54

Browse files
committed
externalized version and release in the fpm script to work with CI/CD better
1 parent 2e2dafc commit 08a5e54

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

contrib/fpm-createPackages.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ URI="https://github.com/BIAndrews/sshfail2kml"
2020
LIC="GPLv3"
2121
PROV="sshfail2kml"
2222
23-
VER="#VER#"
24-
RELEASE="#BUILD#"
23+
. version.sh
2524

2625
install -d $DIR/var/lib/sshfail2kml $DIR/etc/cron.d $DIR/usr/bin
2726
cp -f ../sshfail2kml $DIR/usr/bin

contrib/version.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# example, external file to work better with CI/CD
2+
VER="1.99"
3+
RELEASE="100"

0 commit comments

Comments
 (0)