]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix "smartmatch is experimental" warning from the helper script.
authorPeter Powell <petpow@saberuk.com>
Fri, 26 Oct 2018 13:18:42 +0000 (14:18 +0100)
committerPeter Powell <petpow@saberuk.com>
Fri, 26 Oct 2018 13:18:42 +0000 (14:18 +0100)
make/template/inspircd

index f34345cea54fd4abc05edfc8af79a96cbd4bfdcd..e860c70f82d854e441afdd626db0867e0762b02a 100644 (file)
@@ -59,7 +59,7 @@ my $executable        =       "inspircd";
 my $version    =       "@VERSION_FULL@";
 my $uid = "@UID@";
 
-if (!("--runasroot" ~~ @ARGV) && ($< == 0 || $> == 0)) {
+if (!(grep { $_ eq '--runasroot' } @ARGV) && ($< == 0 || $> == 0)) {
        if ($uid !~ /^\d+$/) {
                # Named UID, look it up
                $uid = getpwnam $uid;