Skip to content

Commit

Permalink
implemented re-sourcing of bash in docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
Arief-AK committed Jun 4, 2024
1 parent 0371d1a commit dca903f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/container/docker_entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/bin/bash

echo "Running SARAX CLI application"

cd $SARAX_WS/src/sarax/scripts/container

# Check if both lines are uncommented
grep -q '^# export LD_LIBRARY_PATH=/usr/lib/wsl/lib' ~/.bashrc && sed -i 's/^# export LD_LIBRARY_PATH=\/usr\/lib\/wsl\/lib$/export LD_LIBRARY_PATH=\/usr\/lib\/wsl\/lib/' ~/.bashrc || echo "Initialised running for WSL2"
grep -q '^# export LIBVA_DRIVER_NAME=d3d12' ~/.bashrc && echo sed -i 's/^# export LIBVA_DRIVER_NAME=d3d12$/export LIBVA_DRIVER_NAME=d3d12/' ~/.bashrc || python3 container_menu.py
grep -q '^# export LIBVA_DRIVER_NAME=d3d12' ~/.bashrc && sed -i 's/^# export LIBVA_DRIVER_NAME=d3d12$/export LIBVA_DRIVER_NAME=d3d12/' ~/.bashrc && echo "Please re-source the bash script using the following command: source ~/.bashrc" || python3 container_menu.py

echo "Please re-source the bash script using the following command: source ~/.bashrc"
# echo "Please re-source the bash script using the following command: source ~/.bashrc"

0 comments on commit dca903f

Please sign in to comment.