From 98d0e2ae01384901343dfd49aa2bf3d820e7305d Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Tue, 29 Nov 2016 22:19:07 +0100 Subject: [PATCH] scripts/ksync: exit on error (esp. on a missing file) We currently do not detect when upstream removes (or rnames) a file we used to sync. We must detect this condition and fail ASAP (or we get a cryptic error from git). Fix that by making the sync script abort on any error. Signed-off-by: "Yann E. MORIN" --- scripts/ksync.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/ksync.sh b/scripts/ksync.sh index 0e3e9a8..ae6119c 100755 --- a/scripts/ksync.sh +++ b/scripts/ksync.sh @@ -1,4 +1,5 @@ #!/bin/sh +set -e my_name="${0##*/}" -- 2.39.5