bashitup 1.0.13 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/bashitup +9 -3
  2. package/package.json +15 -4
package/bin/bashitup CHANGED
@@ -1,8 +1,14 @@
1
1
  #!/usr/bin/env bash
2
2
  # bin/bashitup
3
3
 
4
- # Resolve the package directory
5
- DIR="$(cd "$(dirname "$0")/.." && pwd)"
4
+ # Resolve the real path of the script, following symlinks
5
+ SOURCE="${BASH_SOURCE[0]}"
6
+ while [ -h "$SOURCE" ]; do
7
+ DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
8
+ SOURCE="$(readlink "$SOURCE")"
9
+ [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
10
+ done
11
+ DIR="$( cd -P "$( dirname "$SOURCE" )/.." >/dev/null 2>&1 && pwd )"
6
12
 
7
13
  # Run the main script
8
- exec bash "$DIR/bashitup.sh" "$@"
14
+ exec bash "$DIR/bashitup.sh" "$@"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bashitup",
3
- "version": "1.0.13",
3
+ "version": "2.0.0",
4
4
  "description": "Interactive bash menu builder",
5
5
  "bin": {
6
6
  "bashitup": "bin/bashitup"
@@ -9,11 +9,22 @@
9
9
  "bashitup.sh",
10
10
  "bin/bashitup",
11
11
  "README.md",
12
- "LICENSE.txt"
12
+ "LICENSE"
13
13
  ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/sudo-self/bashitup.sh.git"
17
+ },
14
18
  "keywords": [
15
19
  "bash",
16
- "cli"
20
+ "cli",
21
+ "menu",
22
+ "generator"
17
23
  ],
18
- "license": "MIT"
24
+ "author": "sudo-self",
25
+ "license": "MIT",
26
+ "bugs": {
27
+ "url": "https://github.com/sudo-self/bashitup.sh/issues"
28
+ },
29
+ "homepage": "https://github.com/sudo-self/bashitup.sh#readme"
19
30
  }