--- embedaddon/rsync/support/atomic-rsync 2012/02/17 15:09:30 1.1.1.1 +++ embedaddon/rsync/support/atomic-rsync 2021/03/17 00:32:36 1.1.1.2 @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # This script lets you update a hierarchy of files in an atomic way by # first creating a new hierarchy using rsync's --link-dest option, and @@ -59,7 +59,7 @@ if (system($RSYNC_PROG, "--link-dest=$dest_dir", @ARGV } else { printf "child exited with value %d\n", $? >> 8; } - exit $?; + exit 1; } if (!defined $old_dir) {