From e6a8b05e4cf239ed2681e8eb5392631d48bbf514 Mon Sep 17 00:00:00 2001 From: Oleksandr Chychkan Date: Fri, 4 Feb 2022 13:03:12 -0800 Subject: [PATCH] Minor fixes to 0_setup.sh --- scripts/0_setup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/0_setup.sh b/scripts/0_setup.sh index 22f20c3..54b5d31 100755 --- a/scripts/0_setup.sh +++ b/scripts/0_setup.sh @@ -10,13 +10,13 @@ is_arm64() { [ "$(uname -m)" == "arm64" ] } -[ is_arm64 ] && echo "Running on Apple M1 chip" +is_arm64 && echo "Running on Apple M1 chip" if [ ! -d .dfl/DeepFaceLab ]; then echo "Cloning DeepFaceLab" git clone --no-single-branch --depth 1 "https://github.com/chychkan/DeepFaceLab.git" .dfl/DeepFaceLab - if [ is_arm64 ]; then + if is_arm64; then (cd .dfl/DeepFaceLab; git checkout support-arm64) fi fi @@ -38,7 +38,7 @@ if [[ ! -z "$version" && -f "requirements_$version.txt" ]]; then fi architecture_suffix='' -if [ is_arm64 ] && [ -f "requirements${version_suffix}_arm64.txt" ]; then +if is_arm64 && [ -f "requirements${version_suffix}_arm64.txt" ]; then architecture_suffix="_arm64" fi @@ -46,7 +46,7 @@ reqs_file="requirements${version_suffix}${architecture_suffix}.txt" echo "Using $reqs_file for $(python -V)" -if [ is_arm64 ]; then +if is_arm64; then if [[ -z "$(brew ls --versions hdf5)" ]]; then echo "ERROR: HDF5 needs to be installed to run DeepFaceLab on M1 chip." echo "You can install it with 'brew install hdf5'. For more details, see https://formulae.brew.sh/formula/hdf5"