Skip to content

Commit

Permalink
Merge pull request #5 from nikolay/dev
Browse files Browse the repository at this point in the history
v0.1.6-beta
  • Loading branch information
nikolay committed Sep 7, 2014
2 parents 7c04c3a + 38d3bd2 commit f88f9af
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion wshare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,17 @@ main () {
esac
}

assignment () {
local variable="${1:-}"
local value="${2:-}"

echo "$variable=\"$value\""
}

do_install () {
mkdir -p "$(dirname "$WSHARE_BIN")"
rm -f "$WSHARE_BIN"
echo "${BASH_EXECUTION_STRING/WSHARE_VERSION=\"\"/WSHARE_VERSION=\"$(get_latest_version)\"}" > "$WSHARE_BIN"
echo "${BASH_EXECUTION_STRING/$(assignment WSHARE_VERSION)/$(assignment WSHARE_VERSION "$(get_latest_version)")}" > "$WSHARE_BIN"
chmod +x "$WSHARE_BIN"
}

Expand Down

0 comments on commit f88f9af

Please sign in to comment.