Skip to content

Commit

Permalink
Merge pull request #1404 from mavlink/fix-docker-script
Browse files Browse the repository at this point in the history
Fix run-docker.sh for `sh`
  • Loading branch information
julianoes committed Apr 9, 2021
2 parents ebb69db + 0516426 commit e646010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

dockerimage=mavsdk/mavsdk-ubuntu-20.04-px4-sitl-v1.11

if command -v podman &> /dev/null
if type podman > /dev/null
then
podman run -it --rm -v $(pwd):/home/user/MAVSDK:z $dockerimage "$@"
echo "sudo needed to repair file ownership after podman ran: sudo chown -R $USER:$USER ."
sudo chown -R $USER:$USER .

elif command -v docker &> /dev/null
elif type docker > /dev/null
then
docker run -it --rm -v $(pwd):/home/user/MAVSDK:z -e LOCAL_USER_ID=`id -u` $dockerimage "$@"

Expand Down

0 comments on commit e646010

Please sign in to comment.