summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-10-26 14:18:42 +0100
committerPeter Powell <petpow@saberuk.com>2018-10-26 14:18:42 +0100
commita9a94b6587c55c5c380725bb50004d175d845a31 (patch)
treee840114b0359132d3815acec1582d660a7cde6e8 /make
parent0e397ff7217a1b2232d9a045884fe71f7716c0f7 (diff)
Fix "smartmatch is experimental" warning from the helper script.
Diffstat (limited to 'make')
-rw-r--r--make/template/inspircd2
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;