Skip to content

Commit 49e0c50

Browse files
committed
try pre-commit on multiple platforms
1 parent 80c4cc7 commit 49e0c50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.pre-commit-scripts/install_gettext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ def main():
2121
)
2222
exit(0)
2323
elif sys.platform in ["linux", "linux2"]:
24-
cmd = shlex.split("sudo apt --upgrade && sudo apt install -y gettext", posix=True)
24+
cmd = shlex.split("sudo apt --update && sudo apt install -y gettext", posix=True)
2525
else: # macOS
2626
cmd = shlex.split("brew update && brew install gettext", posix=True)
27-
return subprocess.run(cmd, shell=True, check=True)
27+
return subprocess.run(cmd, shell=False, check=True)
2828

2929

3030
if __name__ == "__main__":

0 commit comments

Comments
 (0)