]> git.sur5r.net Git - kconfig-frontends/commitdiff
scripts/ksync: exit on error (esp. on a missing file)
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 29 Nov 2016 21:19:07 +0000 (22:19 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 29 Nov 2016 21:19:07 +0000 (22:19 +0100)
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" <yann.morin.1998@free.fr>
scripts/ksync.sh

index 0e3e9a88745862b1508c73ed0b887b7c7ee4f1ef..ae6119cfd5634db12234efb56459dd73ac15f9e8 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/sh
 #!/bin/sh
+set -e
 
 my_name="${0##*/}"
 
 
 my_name="${0##*/}"