Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions scripts/run_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,22 @@ if [[ -z "$(docker ps)" ]] ; then
fi

# Check if git-lfs is installed.
set +e
git lfs &>/dev/null
if [[ $? -ne 0 ]] ; then
ECODE=$?
set -e
if [[ $ECODE -ne 0 ]] ; then
print_error "git-lfs is not insalled. Please make sure git-lfs is installed before you clone the repo."
exit 1
fi

# Check if all LFS files are in place in the repository where this script is running from.
cd $ROOT
set +e
git rev-parse &>/dev/null
if [[ $? -eq 0 ]]; then
ECODE=$?
set -e
if [[ $ECODE -eq 0 ]]; then
LFS_FILES_STATUS=$(cd $ISAAC_ROS_DEV_DIR && git lfs ls-files | cut -d ' ' -f2)
for (( i=0; i<${#LFS_FILES_STATUS}; i++ )); do
f="${LFS_FILES_STATUS:$i:1}"
Expand Down