chore(style): add shebang, set bash strict mode, create function
[webi-installers/.git] / myip / install.sh
1 #!/bin/bash
2 set -e
3 set -u
4
5 function __init_myip() {
6
7     rm -f "$HOME/.local/bin/myip"
8     webi_download "$WEBI_HOST/packages/myip/myip.sh" "$HOME/.local/bin/myip"
9     chmod a+x "$HOME/.local/bin/myip"
10
11     "$HOME/.local/bin/myip"
12 }
13
14 __init_myip