]> git.ozlabs.org Git - next-scripts/commitdiff
make_tree_file: Abort if the ssh-add fails
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 18 Jun 2015 00:18:50 +0000 (10:18 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 19 Jun 2015 05:55:29 +0000 (15:55 +1000)
make_tree_file

index 9cc6882365a87c8d9623d7fc52cb968eaec40cdc..ecc6cbeff2b9347ebde6bc0c81339b518ebbb66b 100755 (executable)
@@ -13,7 +13,7 @@ h=$(date '+%k')
 ssh $build_host /usr/local/bin/set-kisskb-jfactor 48
 
 eval $(gpg-agent --daemon --enable-ssh-support)
-ssh-add $ssh_key_file
+ssh-add $ssh_key_file || exit 1
 
 if ! ssh git@gitolite.kernel.org 2fa isval; then
        read -r -p "Yubikey token: " tok