Skip to content

Commit 95c210a

Browse files
committed
Fix relative paths
1 parent 8ada27e commit 95c210a

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

helpers

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env bash
22

3-
source ./src/display
4-
source ./src/execution
5-
source ./src/strings
6-
source ./src/files
3+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
4+
5+
source ${DIR}/src/display
6+
source ${DIR}/src/execution
7+
source ${DIR}/src/strings
8+
source ${DIR}/src/files

lib/cert-generate

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bash
22

33
# Import helpers functions
4-
source ../helpers
4+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
5+
source ${DIR}/../helpers
56

67
HOSTNAME=$1
78
if [ -z "${HOSTNAME}" ]

lib/manage-etc-hosts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bash
22

33
# Import helpers functions
4-
source ../helpers
4+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
5+
source ${DIR}/../helpers
56

67
ETC_HOSTS=/etc/hosts
78
HOSTNAME=$2

lib/manage-git

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bash
22

33
# Import helpers functions
4-
source ../helpers
4+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
5+
source ${DIR}/../helpers
56

67

78
function clone() {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mmb-bash-helpers",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Bash helpers",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)