We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c66270e commit 0684529Copy full SHA for 0684529
bin/gpm
@@ -65,13 +65,20 @@ case "${1:-"install"}" in
65
;;
66
"install")
67
[[ -f "Godeps" ]] || (echo ">> Godeps file does not exist." && exit 1)
68
- (which go > /dev/null) || ( echo ">> Go is currently not installed or in your PATH" && exit 1)
+ (which go > /dev/null) ||
69
+ ( echo ">> Go is currently not installed or in your PATH" && exit 1)
70
set_dependencies
71
72
"help")
73
usage
74
75
*)
- (which "gpm-$1" > /dev/null && gpm-$1 $BASH_ARGV) || usage && exit 1
76
+ ## Support for Plugins: if command is unknown search for a gpm-command executable.
77
+ (which "gpm-$1" > /dev/null &&
78
+ plugin=$1 &&
79
+ shift &&
80
+ gpm-$plugin $@ &&
81
+ exit
82
+ ) || usage && exit 1
83
84
esac
0 commit comments