X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/8051aa5a34b83c6da8acf82ad3dddb47437b994b..01e293f1b52bd16b5b487f5003cce4948786c474:/support/mnt-excl diff --git a/support/mnt-excl b/support/mnt-excl index 5514d96d..c6df5866 100755 --- a/support/mnt-excl +++ b/support/mnt-excl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl # This script takes a command-line arg of a source directory # that will be passed to rsync, and generates a set of excludes # that will exclude all mount points from the list. This is @@ -25,6 +25,7 @@ # awk '{print $2}' /proc/mounts | rsync -f 'merge,/- -' host:/dir /dest/ use strict; +use warnings; use Cwd 'abs_path'; my $file = '/proc/mounts';