1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-31 15:32:45 +00:00

Add shebangs to bash scripts

To specify used interpreter and set exit on error mode.
This commit is contained in:
elsid 2023-12-20 22:37:41 +01:00
parent 66b1745520
commit 491525d173
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
set -e #!/bin/bash -e
docs/source/install_luadocumentor_in_docker.sh docs/source/install_luadocumentor_in_docker.sh
PATH=$PATH:~/luarocks/bin PATH=$PATH:~/luarocks/bin

View File

@ -1,3 +1,5 @@
#!/bin/bash -e
if [ ! -f /.dockerenv ] && [ ! -f /home/docs/omw_luadoc_docker ]; then if [ ! -f /.dockerenv ] && [ ! -f /home/docs/omw_luadoc_docker ]; then
echo 'This script installs lua-5.1, luarocks, and openmwluadocumentor to $HOME. Should be used only in docker.' echo 'This script installs lua-5.1, luarocks, and openmwluadocumentor to $HOME. Should be used only in docker.'
exit 1 exit 1