From: Yann E. MORIN Date: Tue, 29 Nov 2016 21:19:07 +0000 (+0100) Subject: scripts/ksync: exit on error (esp. on a missing file) X-Git-Tag: v4.9.0.0~1 X-Git-Url: https://git.sur5r.net/?p=kconfig-frontends;a=commitdiff_plain;h=98d0e2ae01384901343dfd49aa2bf3d820e7305d 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" --- 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##*/}"