diff --git a/do-plication b/do-plication index 14c9eee..5cc5302 100755 --- a/do-plication +++ b/do-plication @@ -25,7 +25,7 @@ fi if [ "$2" = "-e" ] then sudo ls "$4" > /dev/null - if [ $? -gt 0 ] + if [ $? == 0 ] then echo "key fount using key" sudo stenc -f /dev/nst0 -e on -k "$5" -a 1 --ckod