Explorar el Código

Fixing error where an if keyword was forgot

Vinicius Teshima hace 10 meses
padre
commit
1529cb8286
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      luks.sh

+ 2 - 1
luks.sh

@@ -44,7 +44,7 @@ fi
 
 if test -e ./"$name"
 then
-	if test -d "./${name}" || ERR "File ${name} already exist in current directory. And is not a directory." 1
+	test -d "./${name}" || ERR "File ${name} already exist in current directory. And is not a directory." 1
 
 	if test -b "$block_dev"
 	then
@@ -70,6 +70,7 @@ then
 		rmdir ./$name || ERR "Failed to remove directory: ./${name}" 1
 		exit 0
 	fi
+
 else
 	mkdir ./"$name"
 fi