From: Zoran Zaric Date: Mon, 24 Sep 2012 23:13:33 +0000 (+0200) Subject: Catch ^C in import-duplicity X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=57f37eaf194541f94b84d9299a28fc37fe6bf5e2;p=packages%2Fb%2Fbup.git Catch ^C in import-duplicity Signed-off-by: Zoran Zaric --- diff --git a/cmd/import-duplicity-cmd.sh b/cmd/import-duplicity-cmd.sh index 3427e96..14e9353 100755 --- a/cmd/import-duplicity-cmd.sh +++ b/cmd/import-duplicity-cmd.sh @@ -9,6 +9,13 @@ usage() { exit -1 } +control_c() { + echo "bup import-duplicity: signal 2 received" 1>&2 + exit 128 +} + +trap control_c INT + dry_run= while [ "$1" = "-n" -o "$1" = "--dry-run" ]; do dry_run=echo