Skip to content

Commit

Permalink
bake.bash 移动到新项目:
Browse files Browse the repository at this point in the history
  • Loading branch information
chen56 committed Mar 28, 2024
1 parent cde817c commit 4ae49a1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 550 deletions.
11 changes: 10 additions & 1 deletion bake
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,17 @@ SCRIPT_PATH="$(_real_path "${BASH_SOURCE[0]}")"
SCRIPT_DIR="$(dirname "$SCRIPT_PATH")"
SCRIPT_FILE="$(basename "$SCRIPT_PATH")"

_install_bake(){
mkdir -p "$SCRIPT_DIR/vendor"
echo "$SCRIPT_PATH -> _install_bake ▶︎【curl -o $SCRIPT_DIR/bake.bash https://github.com/chen56/bake/raw/main/bake.bash】"
curl -L -o "$SCRIPT_DIR/vendor/bake.bash" https://github.com/chen56/bake/raw/main/bake.bash ;
}
if ! [[ -f "$SCRIPT_DIR/vendor/bake.bash" ]]; then
_install_bake
fi

# include common script
source "$SCRIPT_DIR/bake.bash"
source "$SCRIPT_DIR/vendor/bake.bash"

##########################################
# app cmd script
Expand Down
Loading

0 comments on commit 4ae49a1

Please sign in to comment.