From b07e3d00e1cd33446ddc5f7c6ddc0ecd6f689596 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 6 Nov 2023 08:47:20 +0200 Subject: [PATCH] docs: use `#!/usr/bin/env bash` instead of `#!/bin/bash` --- .github/workflows/build_vinix_locally.sh | 2 +- .github/workflows/freebsd_build_tcc.sh | 2 +- doc/docs.md | 2 +- doc/packaging_v_for_distributions.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_vinix_locally.sh b/.github/workflows/build_vinix_locally.sh index 488ec4add4..1c56995650 100755 --- a/.github/workflows/build_vinix_locally.sh +++ b/.github/workflows/build_vinix_locally.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/.github/workflows/freebsd_build_tcc.sh b/.github/workflows/freebsd_build_tcc.sh index 0dfa39c085..9bedc16e11 100755 --- a/.github/workflows/freebsd_build_tcc.sh +++ b/.github/workflows/freebsd_build_tcc.sh @@ -1,4 +1,4 @@ -#!/usr/local/bin/bash +#!/usr/bin/env bash ## should be run in V's main repo folder! diff --git a/doc/docs.md b/doc/docs.md index 29458182dc..242be7bfcf 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -6231,7 +6231,7 @@ This is an example bash script you can use to optimize your CLI V program withou In most cases, you will need to change this script to make it suitable for your particular program. ```bash -#!/bin/bash +#!/usr/bin/env bash # Get the full path to the current directory CUR_DIR=$(pwd) diff --git a/doc/packaging_v_for_distributions.md b/doc/packaging_v_for_distributions.md index 7c8e467161..0f26f6bad9 100644 --- a/doc/packaging_v_for_distributions.md +++ b/doc/packaging_v_for_distributions.md @@ -119,7 +119,7 @@ Example `v` script for your bin folder: -------------------------------------------------- ```sh -#!/bin/bash +#!/usr/bin/env bash export VEXE="/opt/vlang/v" export VFLAGS="-cc /usr/bin/custom_cc"