Skip to content

Commit

Permalink
docker: replace pushd in sirf-compose
Browse files Browse the repository at this point in the history
can just as well use cd, as changing directory is local to the script.
This avoids annoying messages with the directory stack.
  • Loading branch information
KrisThielemans committed May 21, 2021
1 parent d318854 commit a24544f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 16 deletions.
3 changes: 1 addition & 2 deletions docker/sirf-compose
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env bash
pushd "$(dirname $0)"
cd "$(dirname $0)"
docker-compose -f docker-compose.yml -f docker-compose.nix.yml "$@"
popd
3 changes: 1 addition & 2 deletions docker/sirf-compose-devel
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env bash
pushd "$(dirname $0)"
cd "$(dirname $0)"
./sirf-compose -f docker-compose.devel.yml "$@"
popd
3 changes: 1 addition & 2 deletions docker/sirf-compose-devel-server
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env bash
pushd "$(dirname $0)"
cd "$(dirname $0)"
./sirf-compose-devel -f docker-compose.srv.yml "$@"
popd
3 changes: 1 addition & 2 deletions docker/sirf-compose-devel-server-gpu
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env bash
pushd "$(dirname $0)"
cd "$(dirname $0)"
./sirf-compose-devel-server -f docker-compose.srv-gpu.yml "$@"
popd
3 changes: 1 addition & 2 deletions docker/sirf-compose-devel-server-multi
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env bash
pushd "$(dirname $0)"
cd "$(dirname $0)"
./sirf-compose-devel-server -f docker-compose.srv-multi.yml "$@"
popd
3 changes: 1 addition & 2 deletions docker/sirf-compose-server
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env bash
pushd "$(dirname $0)"
cd "$(dirname $0)"
./sirf-compose -f docker-compose.srv.yml "$@"
popd
3 changes: 1 addition & 2 deletions docker/sirf-compose-server-gpu
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env bash
pushd "$(dirname $0)"
cd "$(dirname $0)"
./sirf-compose-server -f docker-compose.srv-gpu.yml "$@"
popd
3 changes: 1 addition & 2 deletions docker/sirf-compose-server-multi
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env bash
pushd "$(dirname $0)"
cd "$(dirname $0)"
./sirf-compose-server -f docker-compose.srv-multi.yml "$@"
popd

0 comments on commit a24544f

Please sign in to comment.