projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feature(windows): make it more clear that the user needs to update their PATH
[webi-installers/.git]
/
myip
/
install.sh
diff --git
a/myip/install.sh
b/myip/install.sh
index 2965145c4b0088052e418c0cc91a675508f7274a..a544cd7907867b8987d8ed496c62525e1ff8efcc 100644
(file)
--- a/
myip/install.sh
+++ b/
myip/install.sh
@@
-1,12
+1,14
@@
#!/bin/bash
#!/bin/bash
+set -e
+set -u
-{
- set -e
- set -u
+function __init_myip() {
rm -f "$HOME/.local/bin/myip"
rm -f "$HOME/.local/bin/myip"
- webi_download
"$WEBI_HOST/packages/myip/myip.sh" "$HOME/.local/bin/myip"
+ webi_download "$WEBI_HOST/packages/myip/myip.sh" "$HOME/.local/bin/myip"
chmod a+x "$HOME/.local/bin/myip"
"$HOME/.local/bin/myip"
}
chmod a+x "$HOME/.local/bin/myip"
"$HOME/.local/bin/myip"
}
+
+__init_myip