Closed basharov closed 6 years ago
@basharov Thanks for the question. Yes, this is intentional behavior.
If you want to do sequential command within the same session, your approach with lsroot is correct (run: cd /; ls
).
Thinking of it, we might introduce a $SUP_PWD variable or similar, if there's enough demand.
Very useful syntax for running multiple commands in a single session:
build:
run: |
echo "multiline"
echo "input"
if [ "$SUP_NETWORK" == "build" ]; then
docker build #...
fi
I am trying out sup and here is my Supfile
When I run
sup staging lsroot
, it goes to root path / then lists the tree correctly. But when I runsup staging goroot ls
, it seems like two commands run in their own sessions, becausels
shows content of /root folder, not /.Is it an intentional behavior? I'd like to run a list of commands in one session., like in
lsroot
example above.