File tree 3 files changed +28
-19
lines changed
3 files changed +28
-19
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ mkdir -p "$ores_home/bash" || {
57
57
58
58
59
59
echo " copying waldo.sh file from codebase to user home..." ;
60
- cat assets/waldo .sh > " $ores_home /bash/waldo.sh" || {
60
+ cat assets/shell .sh > " $ores_home /bash/waldo.sh" || {
61
61
echo " could not copy waldo.sh shell file to user home." >&2 ;
62
62
exit 1;
63
63
}
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ get_latest_source_waldo (){
4
+ . " $HOME /.oresoftware/bash/waldo.sh"
5
+ }
6
+
7
+ waldo (){
8
+
9
+ if ! type -f waldo & > /dev/null || ! which waldo & > /dev/null; then
10
+
11
+ echo " Installing '@oresoftware/waldo' globally..." ;
12
+
13
+ npm i -s -g ' @oresoftware/waldo' || {
14
+ echo " Could not install the '@oresoftware/waldo' package globally." ;
15
+ echo " Please check your permissions to install NPM packages globally." ;
16
+ return 1;
17
+ }
18
+
19
+ fi
20
+
21
+ command waldo $@
22
+ }
23
+
24
+
25
+ export -f waldo;
26
+
27
+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments