mirror of
https://github.com/fauxpilot/fauxpilot.git
synced 2025-08-21 05:44:09 -07:00
feat: added a function to check dependent cmds
This commit is append a routine that checks if required commands are installed or not. Signed-off-by: Geunsik Lim <leemgs@gmail.com>
This commit is contained in:
parent
9d27a0ca92
commit
cad047ba4f
1 changed files with 12 additions and 0 deletions
12
setup.sh
12
setup.sh
|
@ -6,6 +6,18 @@ if [ -f config.env ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
function check_dep(){
|
||||||
|
echo "Checking for $1 ..."
|
||||||
|
which "$1" 2>/dev/null || {
|
||||||
|
echo "Please install $1."
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
check_dep curl
|
||||||
|
check_dep zstd
|
||||||
|
check_dep docker
|
||||||
|
|
||||||
|
|
||||||
echo "Models available:"
|
echo "Models available:"
|
||||||
echo "[1] codegen-350M-mono (2GB total VRAM required; Python-only)"
|
echo "[1] codegen-350M-mono (2GB total VRAM required; Python-only)"
|
||||||
echo "[2] codegen-350M-multi (2GB total VRAM required; multi-language)"
|
echo "[2] codegen-350M-multi (2GB total VRAM required; multi-language)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue