summaryrefslogtreecommitdiff
path: root/sync-all
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2013-08-06 13:18:22 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2013-08-06 13:20:26 +1000
commit0daee297e3c44c00f54d2be15f13eabdddc6b62f (patch)
tree073f0391ffef8f2416128de6dd7efe761184cf0e /sync-all
parent9082111dcdbad7d161ecb0a08bb467f6c62e0a1b (diff)
downloadhaskell-0daee297e3c44c00f54d2be15f13eabdddc6b62f.tar.gz
sync-all : Replace '~~' operator with something supported by older Perl.
Diffstat (limited to 'sync-all')
-rwxr-xr-xsync-all3
1 files changed, 2 insertions, 1 deletions
diff --git a/sync-all b/sync-all
index 00d14bb0a3..e3d6f35acc 100755
--- a/sync-all
+++ b/sync-all
@@ -901,7 +901,8 @@ sub main {
}
BEGIN {
- if ("pull" ~~ @ARGV) {
+ my %argvHash = map { $_, 1 } @ARGV;
+ if ($argvHash {"pull"}) {
checkCurrentBranchIsMaster();
}
$initial_working_directory = getcwd();