Browse Source

fix bug with node and python packages

Kyle P Davis 10 years ago
parent
commit
14f1877877
2 changed files with 2 additions and 2 deletions
  1. 1 1
      gimmes/_node_pkg
  2. 1 1
      gimmes/_python_pkg

+ 1 - 1
gimmes/_node_pkg

@@ -1,7 +1,7 @@
 #!/bin/bash
 set -o errexit -o pipefail
 
-PKG=${0%%*/}
+PKG=${0##*/}
 if [[ "$OS" = "Darwin" ]]; then
 	has "$PKG"  ||  npm install -g "$PKG"
 else

+ 1 - 1
gimmes/_python_pkg

@@ -3,7 +3,7 @@ set -o errexit -o pipefail
 
 gimme python
 
-PKG=${0%%*/}
+PKG=${0##*/}
 if ! has "$PKG"; then
 	if [[ "$OS" = "Darwin" ]]; then
 		mkdir -p "$PYTHONPATH"