Skip to content

Commit

Permalink
shellcheck: fix SC2128: Expanding an array without an index only give…
Browse files Browse the repository at this point in the history
…s the first element.

Signed-off-by: Quentin Schulz <[email protected]>
  • Loading branch information
QSchulz authored and JoshuaWatt committed Jul 15, 2021
1 parent dd19f8d commit 7d3f50f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrex-init-build-env
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if [ -n "$BASH_SOURCE" ]; then
if [ -n "${BASH_SOURCE[*]}" ]; then
THIS_SCRIPT=$BASH_SOURCE
elif [ -n "$ZSH_NAME" ]; then
THIS_SCRIPT=$0
Expand Down

0 comments on commit 7d3f50f

Please sign in to comment.