Skip to content

Commit

Permalink
Fix relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mmascort-t4xi committed Aug 9, 2020
1 parent 8ada27e commit 95c210a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
10 changes: 6 additions & 4 deletions helpers
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash

source ./src/display
source ./src/execution
source ./src/strings
source ./src/files
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

source ${DIR}/src/display
source ${DIR}/src/execution
source ${DIR}/src/strings
source ${DIR}/src/files
3 changes: 2 additions & 1 deletion lib/cert-generate
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env bash

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

HOSTNAME=$1
if [ -z "${HOSTNAME}" ]
Expand Down
3 changes: 2 additions & 1 deletion lib/manage-etc-hosts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env bash

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

ETC_HOSTS=/etc/hosts
HOSTNAME=$2
Expand Down
3 changes: 2 additions & 1 deletion lib/manage-git
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env bash

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


function clone() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mmb-bash-helpers",
"version": "1.0.1",
"version": "1.0.2",
"description": "Bash helpers",
"repository": {
"type": "git",
Expand Down

0 comments on commit 95c210a

Please sign in to comment.