diff options
author | Peter Powell <petpow@saberuk.com> | 2018-10-26 14:18:42 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-10-26 14:18:42 +0100 |
commit | a9a94b6587c55c5c380725bb50004d175d845a31 (patch) | |
tree | e840114b0359132d3815acec1582d660a7cde6e8 /make/template/inspircd | |
parent | 0e397ff7217a1b2232d9a045884fe71f7716c0f7 (diff) |
Fix "smartmatch is experimental" warning from the helper script.
Diffstat (limited to 'make/template/inspircd')
-rw-r--r-- | make/template/inspircd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/make/template/inspircd b/make/template/inspircd index f34345cea..e860c70f8 100644 --- a/make/template/inspircd +++ b/make/template/inspircd @@ -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; |