mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-02-03 05:43:05 +00:00
Merge pull request #45 from logos-messaging/fix-shebangs
fix: use env instead of hardcoding bash path
This commit is contained in:
commit
a8a5e42530
3
env.sh
3
env.sh
@ -1,8 +1,7 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# We use ${BASH_SOURCE[0]} instead of $0 to allow sourcing this file
|
||||
# and we fall back to a Zsh-specific special var to also support Zsh.
|
||||
REL_PATH="$(dirname ${BASH_SOURCE[0]:-${(%):-%x}})"
|
||||
ABS_PATH="$(cd ${REL_PATH}; pwd)"
|
||||
source ${ABS_PATH}/vendor/nimbus-build-system/scripts/env.sh
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user