@leverege/build-tools 2.43.10 → 2.43.11
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.
- package/package.json +1 -1
- package/src/bash-funcs +15 -2
package/package.json
CHANGED
package/src/bash-funcs
CHANGED
|
@@ -161,7 +161,18 @@ EOSLACK
|
|
|
161
161
|
# of the standard setup scripts.
|
|
162
162
|
function ifPluggedIn() {
|
|
163
163
|
local INVOKED_AS=`basename $0`
|
|
164
|
-
local PLUGIN=
|
|
164
|
+
local PLUGIN=
|
|
165
|
+
case "$INVOKED_AS" in
|
|
166
|
+
"helmup"|"helmwhat" )
|
|
167
|
+
PLUGIN="$1/helmup.plugin"
|
|
168
|
+
;;
|
|
169
|
+
"helmdn" )
|
|
170
|
+
PLUGIN="$1/helmdn.plugin"
|
|
171
|
+
;;
|
|
172
|
+
*)
|
|
173
|
+
;;
|
|
174
|
+
esac
|
|
175
|
+
|
|
165
176
|
[ ! -f $PLUGIN ] && return 1
|
|
166
177
|
|
|
167
178
|
if [ ! -x $PLUGIN ];
|
|
@@ -174,7 +185,9 @@ PLUGIN_NOEXEC
|
|
|
174
185
|
exit 1
|
|
175
186
|
fi
|
|
176
187
|
|
|
177
|
-
|
|
188
|
+
local OPERATION="Executing local plugin code"
|
|
189
|
+
[ ! -z "$HELM_WHAT" ] && OPERATION="Performing a DRY RUN"
|
|
190
|
+
printf "\n***$OPERATION => `color y $PLUGIN`\n\n" && sleep 2
|
|
178
191
|
export HELM_WHAT
|
|
179
192
|
. $PLUGIN # executing with . allows the plugin to use functions like color
|
|
180
193
|
sendToSlack "$PLUGIN"
|