Improved compatibility: change"/bin/[x]" to "/usr/bin/env [x]" (#265)

changed paths of the form "/bin/[x]" into "/usr/bin/env [x]" (#265)
This commit is contained in:
r-savu
2018-08-13 16:39:15 +02:00
committed by Tom Limoncelli
parent 74de17a4f6
commit dc9fa326f4
4 changed files with 4 additions and 4 deletions

View File

@@ -140,7 +140,7 @@ function fail_if_not_on_cryptlist() {
if ! is_on_cryptlist "$name" ; then
echo "ERROR: $name not found in $BB_FILES" >&2
echo "PWD=$(/bin/pwd)" >&2
echo "PWD=$(/usr/bin/env pwd)" >&2
echo 'Exiting...' >&2
exit 1
fi

View File

@@ -1,4 +1,4 @@
#!/bin/zsh
#!/usr/bin/env zsh
# The MIT License (MIT)
# Copyright (c) 2014 Stack Exchange, Inc.

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# Test profile.d-usrblackbox.sh

View File

@@ -47,7 +47,7 @@ function assert_file_missing() {
function assert_file_exists() {
if [[ ! -e "$1" ]]; then
echo "ASSERT FAILED: ${1} should exist."
echo "PWD=$(/bin/pwd -P)"
echo "PWD=$(/usr/bin/env pwd -P)"
#echo "LS START"
#ls -la
#echo "LS END"