projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
chore(style): add shebang, set bash strict mode, create function
[webi-installers/.git]
/
myip
/
install.sh
diff --git
a/myip/install.sh
b/myip/install.sh
index 0d261e5eaa149897f90b78a9b7c03ddb5a8d20a6..a544cd7907867b8987d8ed496c62525e1ff8efcc 100644
(file)
--- a/
myip/install.sh
+++ b/
myip/install.sh
@@
-1,8
+1,8
@@
#!/bin/bash
+set -e
+set -u
-{
- set -e
- set -u
+function __init_myip() {
rm -f "$HOME/.local/bin/myip"
webi_download "$WEBI_HOST/packages/myip/myip.sh" "$HOME/.local/bin/myip"
@@
-10,3
+10,5
@@
"$HOME/.local/bin/myip"
}
+
+__init_myip