Skip to content

Commit 3bcd903

Browse files
committed
Don't assume location of bash
Not all environments (NixOS, for example) put bash in /bin. It's more portable to use `/usr/bin/env bash`, which looks up the location of bash dynamically. In practice the location of the env command is fairly standardized.
1 parent 2a53422 commit 3bcd903

13 files changed

+13
-13
lines changed

argsparse-completion.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# -*- tab-width: 4; encoding: utf-8; -*-
33
#
44
#########

argsparse.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# -*- tab-width: 4; encoding: utf-8; -*-
33
#
44
#########

tutorial/0-completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
tutorial_directory=${BASH_SOURCE[0]%/*}
44

tutorial/1-basics

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
PATH="..:$PATH"
44

tutorial/2-values

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33

44
PATH="..:$PATH"

tutorial/3-cumulative-options

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
PATH="..:$PATH"
44

tutorial/4-types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
PATH="..:$PATH"
44

tutorial/5-custom-types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
PATH="..:$PATH"
44

tutorial/6-properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
PATH="..:$PATH"
44

tutorial/7-value-checking

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
PATH="..:$PATH"
44

0 commit comments

Comments
 (0)