Different check for file

The ls command to check for this file will throw an error when the file does not exist. Better to simply test for the file (with size greater than zero).
This commit is contained in:
Søren Theilgaard
2022-02-07 12:56:13 +01:00
parent 842b1e19cb
commit 2a1176a947

View File

@@ -700,7 +700,7 @@ installPkgInZip() {
archiveName="${filearray[1]}"
printlog "found pkg: $archiveName"
else
if ls "$tmpDir/$pkgName" ; then
if [[ -s "$tmpDir/$pkgName" ]]; then
archiveName="$tmpDir/$pkgName"
else
# try searching for pkg