local install minor bug fix
This commit is contained in:
parent
ffa5ff18a3
commit
8a48180b6a
|
@ -2,9 +2,9 @@
|
||||||
set -eo &> /dev/null
|
set -eo &> /dev/null
|
||||||
|
|
||||||
# Make sure that the ISAAC_SIM_PATH variable is set correctly
|
# Make sure that the ISAAC_SIM_PATH variable is set correctly
|
||||||
if [[ -d ~/.local/share/ov/pkg ]] && [[ $(ls ~/.local/share/ov/pkg | grep isaac_sim) ]];
|
if [[ -d ~/.local/share/ov/pkg ]] && [[ $(ls ~/.local/share/ov/pkg | grep isaac-sim) ]];
|
||||||
then
|
then
|
||||||
FOUND_ISAAC_SIM_PATH=$(ls -d ~/.local/share/ov/pkg/* | grep isaac_sim | tail -n 1)
|
FOUND_ISAAC_SIM_PATH=$(ls -d ~/.local/share/ov/pkg/* | grep isaac-sim | tail -n 1)
|
||||||
echo "We found Isaac Sim installed at [4m$FOUND_ISAAC_SIM_PATH[0m. OmniGibson will use it by default."
|
echo "We found Isaac Sim installed at [4m$FOUND_ISAAC_SIM_PATH[0m. OmniGibson will use it by default."
|
||||||
read -p "If you want to use a different one, please type in the path containing isaac-sim.sh here (press enter to skip) >>> " ISAAC_SIM_PATH
|
read -p "If you want to use a different one, please type in the path containing isaac-sim.sh here (press enter to skip) >>> " ISAAC_SIM_PATH
|
||||||
ISAAC_SIM_PATH=${ISAAC_SIM_PATH:-$FOUND_ISAAC_SIM_PATH}
|
ISAAC_SIM_PATH=${ISAAC_SIM_PATH:-$FOUND_ISAAC_SIM_PATH}
|
||||||
|
@ -14,10 +14,10 @@ else
|
||||||
read -p "If you have already installed it in a custom location, please type in the path containing isaac-sim.sh here >>> " ISAAC_SIM_PATH
|
read -p "If you have already installed it in a custom location, please type in the path containing isaac-sim.sh here >>> " ISAAC_SIM_PATH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while [[ ! -f "${ISAAC_SIM_PATH}/isaac*.sh" ]]; do
|
while [[ ! -n $(find "${ISAAC_SIM_PATH}" -maxdepth 1 -name "isaac*.sh" 2>/dev/null) ]]; do
|
||||||
read -p "isaac*.sh not found in [4m$ISAAC_SIM_PATH[0m! Make sure you have entered the correct path >>> " ISAAC_SIM_PATH
|
echo "isaac*.sh not found in [4m$ISAAC_SIM_PATH[0m."
|
||||||
|
read -p "Make sure you have entered the correct path >>> " ISAAC_SIM_PATH
|
||||||
done
|
done
|
||||||
echo -e "\nUsing Isaac Sim at [4m$ISAAC_SIM_PATH[0m\n"
|
|
||||||
|
|
||||||
|
|
||||||
# Choose venv name
|
# Choose venv name
|
||||||
|
|
Loading…
Reference in New Issue