-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implemented re-sourcing of bash in docker container
- Loading branch information
Showing
1 changed file
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |