Skip to content

Commit 2cc3759

Browse files
committed
pdev:'set'
1 parent c746ceb commit 2cc3759

File tree

3 files changed

+28
-19
lines changed

3 files changed

+28
-19
lines changed

assets/postinstall.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ mkdir -p "$ores_home/bash" || {
5757

5858

5959
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" || {
6161
echo "could not copy waldo.sh shell file to user home." >&2;
6262
exit 1;
6363
}

assets/shell.sh

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+

assets/waldo.sh

-18
This file was deleted.

0 commit comments

Comments
 (0)