We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f88f9af + 1b7614b commit c580fe5Copy full SHA for c580fe5
wshare.sh
@@ -216,7 +216,8 @@ assignment () {
216
do_install () {
217
mkdir -p "$(dirname "$WSHARE_BIN")"
218
rm -f "$WSHARE_BIN"
219
- echo "${BASH_EXECUTION_STRING/$(assignment WSHARE_VERSION)/$(assignment WSHARE_VERSION "$(get_latest_version)")}" > "$WSHARE_BIN"
+ local self="${BASH_EXECUTION_STRING:-$(curl -sL git.io/wshare)}"
220
+ echo "${self/$(assignment WSHARE_VERSION)/$(assignment WSHARE_VERSION "$(get_latest_version)")}" > "$WSHARE_BIN"
221
chmod +x "$WSHARE_BIN"
222
}
223
0 commit comments