Skip to content

Commit c580fe5

Browse files
committed
Merge pull request #6 from nikolay/dev
v0.1.7-beta
2 parents f88f9af + 1b7614b commit c580fe5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wshare.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ assignment () {
216216
do_install () {
217217
mkdir -p "$(dirname "$WSHARE_BIN")"
218218
rm -f "$WSHARE_BIN"
219-
echo "${BASH_EXECUTION_STRING/$(assignment WSHARE_VERSION)/$(assignment WSHARE_VERSION "$(get_latest_version)")}" > "$WSHARE_BIN"
219+
local self="${BASH_EXECUTION_STRING:-$(curl -sL git.io/wshare)}"
220+
echo "${self/$(assignment WSHARE_VERSION)/$(assignment WSHARE_VERSION "$(get_latest_version)")}" > "$WSHARE_BIN"
220221
chmod +x "$WSHARE_BIN"
221222
}
222223

0 commit comments

Comments
 (0)