Skip to content

Commit 8eed8b1

Browse files
committed
Update shebangs to reference the python "Current" symlink.
This will avoid some work when python3.9 drops.
1 parent 7b0c984 commit 8eed8b1

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

payload/usr/local/munki/postflight

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/local/sal/Python.framework/Versions/3.8/bin/python3
1+
#!/usr/local/sal/Python.framework/Versions/Current/bin/python3
22
"""Run all scripts found in the Munki postflight.d directory."""
33

44

payload/usr/local/munki/postflight.d/sal-postflight

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/local/sal/Python.framework/Versions/3.8/bin/python3
1+
#!/usr/local/sal/Python.framework/Versions/Current/bin/python3
22

33

44
import os

payload/usr/local/munki/preflight

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/local/sal/Python.framework/Versions/3.8/bin/python3
1+
#!/usr/local/sal/Python.framework/Versions/Current/bin/python3
22
"""Run all scripts found in the Munki preflight.d directory."""
33

44

payload/usr/local/munki/preflight.d/sal-preflight

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/local/sal/Python.framework/Versions/3.8/bin/python3
1+
#!/usr/local/sal/Python.framework/Versions/Current/bin/python3
22
"""preflight
33
44
Retrieves plugin scripts to run on client.

payload/usr/local/sal/bin/randomizer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/local/sal/Python.framework/Versions/3.8/bin/python3
1+
#!/usr/local/sal/Python.framework/Versions/Current/bin/python3
22

33

44
import argparse

payload/usr/local/sal/bin/sal-submit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/local/sal/Python.framework/Versions/3.8/bin/python3
1+
#!/usr/local/sal/Python.framework/Versions/Current/bin/python3
22
"""sal-submit
33
44
Coordinates running checkin modules and submitting their results to Sal.

payload/usr/local/sal/checkin_modules/apple_sus_checkin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/local/sal/Python.framework/Versions/3.8/bin/python3
1+
#!/usr/local/sal/Python.framework/Versions/Current/bin/python3
22

33

44
import datetime

payload/usr/local/sal/checkin_modules/machine_checkin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/local/sal/Python.framework/Versions/3.8/bin/python3
1+
#!/usr/local/sal/Python.framework/Versions/Current/bin/python3
22

33

44
import pathlib
@@ -105,7 +105,7 @@ def get_model_code(serial):
105105
# Remove S prefix from scanned codes.
106106
serial = serial[1:]
107107
return serial[8:].upper()
108-
108+
109109
elif 11 <= len(serial) <= 12:
110110
# 2010 Mac Pros starting with H or Y are 11 characters
111111
return serial[8:].upper()

payload/usr/local/sal/checkin_modules/munki_checkin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/local/sal/Python.framework/Versions/3.8/bin/python3
1+
#!/usr/local/sal/Python.framework/Versions/Current/bin/python3
22

33

44
import datetime

payload/usr/local/sal/checkin_modules/profile_checkin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/local/sal/Python.framework/Versions/3.8/bin/python3
1+
#!/usr/local/sal/Python.framework/Versions/Current/bin/python3
22

33

44
import pathlib

payload/usr/local/sal/checkin_modules/sal_checkin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/local/sal/Python.framework/Versions/3.8/bin/python3
1+
#!/usr/local/sal/Python.framework/Versions/Current/bin/python3
22

33

44
import sal

0 commit comments

Comments
 (0)