idiosynkrasies with exit conditions

This commit is contained in:
Erik Foris 2021-01-06 20:30:14 +00:00
parent 688ccfa54d
commit 1ea4ecbed3

View File

@ -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";