Skip to content

Commit 6457ea8

Browse files
committed
Update possible Munki embedded Python shebangs
1 parent 8c99437 commit 6457ea8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pre_commit_hooks/check_munki_pkgsinfo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ def main(argv=None):
144144
"#!/usr/bin/perl",
145145
"#!/usr/bin/python",
146146
"#!/usr/bin/ruby",
147-
"#!/usr/local/munki/python",
147+
"#!/usr/local/munki/munki-python",
148+
"#!/usr/local/munki/Python.framework/Versions/Current/bin/python3",
148149
)
149150
script_types = (
150151
"installcheck_script",
@@ -159,7 +160,7 @@ def main(argv=None):
159160
if script_type in pkginfo:
160161
if all(not pkginfo[script_type].startswith(x + "\n") for x in shebangs):
161162
print(
162-
"{}: has a {} that does not start with a shebang.".format(
163+
"{}: has a {} that does not start with a valid shebang.".format(
163164
filename, script_type
164165
)
165166
)

0 commit comments

Comments
 (0)