aos/tools/docker/entrypoint.sh
Daniel Schwyn a7a01f8ea1 Bug fixes
Signed-off-by: Daniel Schwyn <daniel.schwyn@inf.ethz.ch>
2022-04-04 15:16:17 +02:00

20 lines
363 B
Bash
Executable File

#!/bin/bash
# Copyright (c) 2021,2022 The University of British Columbia.
# All rights reserved.
#
# This file is distributed under the terms in the attached LICENSE file.
# create the build directory if it doesn't exist
mkdir -p /source/build
# cd into the build directory
cd /source/build
if [ "$1" == "" ]; then
exec "/bin/bash"
else
exec "$@"
fi