mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user