From 1ea4ecbed392a54a96d8f109fcbf44c19d9005ce Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 6 Jan 2021 20:30:14 +0000 Subject: [PATCH] idiosynkrasies with exit conditions --- do-plication | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/do-plication b/do-plication index 65b655d..cffa15d 100755 --- a/do-plication +++ b/do-plication @@ -24,8 +24,8 @@ fi if [ "$2" = "-e" ] then - ls "$4" > /dev/null - if [$? -gt 0] + sudo ls "$4" > /dev/null + if [$? -gt 1] then echo "key not fount creating key" sudo stenc -g 256 -k "$5" -kd "$6";