commit: ace63eef93afa5c82823fb903b3839440aa9e7d9
parent f2728319b070078087604c0ec6fa9b4cabe5ef23
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 11 Feb 2022 19:49:16 +0100
git-hooks/post-update.srht: Fix syntax
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/git-hooks/post-update.srht b/git-hooks/post-update.srht
@@ -46,8 +46,8 @@ sub new_job {
};
}
-if (not (defined($ENV{SRHT_HOST}) && defined($ENV{SRHT_TOKEN})) {
- print "Environment variables $SRHT_HOST and $SRHT_TOKEN are undefined";
+if (not ( defined($ENV{'SRHT_HOST'}) && defined($ENV{'SRHT_TOKEN'}) )) {
+ print 'Environment variables $SRHT_HOST and $SRHT_TOKEN are undefined';
exit 1;
}