scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

commit 081213cdf65676a9eb0b56ffd804463fb894f000
parent cb6f50cd772bc1b052aec7fe739a9d97f5304366
Author: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Date:   Wed, 27 Nov 2013 11:23:49 +0000

Bail out if remote dir does not exist

Diffstat:
itor | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/itor b/itor @@ -17,6 +17,10 @@ listing=$(mktemp) trap 'rm -f $listing; exit 0' 2 ssh $host "ls $rdir" > $listing +if [ ! $? -eq 0 ]; then + exit 1 +fi + idx=0 while read f; do echo "$idx: $f"