shoestrap/recipes/default/force-cli
2023-02-24 14:36:51 -08:00

15 lines
472 B
Bash
Executable File

#! /bin/bash
# Some settings are mac specific
if [[ "$UNAME_STR" == "Darwin" ]]; then
wget -P "$USER_BIN" https://godist.herokuapp.com/projects/heroku/force/releases/current/darwin-amd64/force
elif [[ "$UNAME_STR" == "Linux" ]]; then
wget -P "$USER_BIN" https://godist.herokuapp.com/projects/heroku/force/releases/current/linux-amd64/force
fi
chmod +x "$USER_BIN/force"
for f in "$DEFAULT_ASSETS_PATH"/* ; do
try_link "$f" "$USER_BIN/$(basename "$f")"
done