fixed bug

This commit is contained in:
Erik Foris 2021-01-06 20:44:07 +00:00
parent 55393b96da
commit 0e6b022e03

View File

@ -25,7 +25,7 @@ fi
if [ "$2" = "-e" ] if [ "$2" = "-e" ]
then then
sudo ls "$4" > /dev/null sudo ls "$4" > /dev/null
if [ $? -gt 0 ] if [ $? == 0 ]
then then
echo "key fount using key" echo "key fount using key"
sudo stenc -f /dev/nst0 -e on -k "$5" -a 1 --ckod sudo stenc -f /dev/nst0 -e on -k "$5" -a 1 --ckod