Skip to content

Commit

Permalink
refactor: update tmp_dir
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <[email protected]>
  • Loading branch information
apepkuss committed Nov 12, 2024
1 parent b575d3b commit c46c0d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ config_url=""
gaianet_base_dir="$HOME/gaianet"
# tmp directory
tmp_dir="$gaianet_base_dir/tmp"
tmp_dir_updated=0
# specific CUDA enabled GGML plugin
ggmlcuda=""
# 0: disable vector, 1: enable vector
Expand Down Expand Up @@ -82,6 +83,9 @@ while [[ $# -gt 0 ]]; do
exit 1
fi
gaianet_base_dir=$(cd "$gaianet_base_dir" && pwd)
if [ "$tmp_dir_updated" -eq 0 ]; then
tmp_dir="$gaianet_base_dir/tmp"
fi
shift 2
;;
--reinstall)
Expand Down Expand Up @@ -114,6 +118,7 @@ while [[ $# -gt 0 ]]; do
;;
--tmpdir)
tmp_dir="$2"
tmp_dir_updated=1
shift 2
;;
--ggmlcuda)
Expand Down

0 comments on commit c46c0d5

Please sign in to comment.