Skip to content

Commit

Permalink
now works with .app input again
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptingosx committed May 23, 2017
1 parent fc39c01 commit b7465ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quickpkg
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,14 @@ if __name__ == "__main__":
print ".%s is not a supported extension!" % item_extension
exit(1)

foundapps = []

# if item is an app, just pass it on
if item_extension == 'app':
if not os.path.exists(item_path):
print "This does not seem to be an Application!"
exit(1)

app_path = item_path
foundapps.append(item_path)

dmgvolumepaths = []
tmp_path = None
Expand All @@ -405,7 +406,6 @@ if __name__ == "__main__":
# if item is a dmg, mount it and find useful contents
if item_extension == 'dmg':
dmgvolumepaths = attachdmg(item_path)
foundapps = []
for x in dmgvolumepaths:
moreapps = finditemswithextension(x, 'app')
foundapps.extend(moreapps)
Expand Down

0 comments on commit b7465ab

Please sign in to comment.