Files
tfhe-rs/scripts/clone_backward_compat_data.sh
2024-06-24 10:07:14 +02:00

20 lines
285 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ $# -lt 2 ]; then
echo "$0 git_url dest_path"
exit 1
fi
if ! git lfs env 2>/dev/null >/dev/null; then
echo "git lfs is not installed, please install it and try again"
exit 1
fi
if [ -d $2 ]; then
cd $2 && git pull
else
git clone $1 $2
fi