Skip to content

Instantly share code, notes, and snippets.

@JohnL4
Last active February 7, 2024 15:22
Show Gist options
  • Save JohnL4/7a9d476801ad3f5345d37b3587f14794 to your computer and use it in GitHub Desktop.
Save JohnL4/7a9d476801ad3f5345d37b3587f14794 to your computer and use it in GitHub Desktop.
Flip the executable bit on a shell script with git command line
git update-index --chmod=+x myscript.sh
# May be required to get your bash script to run in a Linux Azure pipeline agent; watch for "not executable" errors.
# (This is Powershell, but who cares, it's a command line.)
# From https://www.aligrant.com/web/blog/2022-04-20_execute_permission_on_chained_shell_scripts_through_azure_devops
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment