Update entrypoint.sh

This commit is contained in:
anki-code 2020-03-07 23:24:05 +03:00 committed by GitHub
parent 777edae8d4
commit 418dcfea4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,15 +9,15 @@
# -c <command> Execute command on host, print the result and exit # -c <command> Execute command on host, print the result and exit
# -v Verbose mode to debug # -v Verbose mode to debug
# #
while getopts f:c:v: option #while getopts f:c:v: option
do #do
case "${option}" #case "${option}"
in #in
f) EXECUTE_FILE=${OPTARG};; #f) EXECUTE_FILE=${OPTARG};;
c) EXECUTE_COMMAND=${OPTARG};; #c) EXECUTE_COMMAND=${OPTARG};;
v) VERBOSE=${OPTARG};; #v) VERBOSE=${OPTARG};;
esac #esac
done #done
# #
# Move to current directory # Move to current directory
@ -28,4 +28,4 @@ cd $CURRENT_DIR
# #
# Run the portable shell # Run the portable shell
# #
./your_portable_shell # $EXECUTE_FILE $EXECUTE_COMMAND $VERBOSE ./your_portable_shell # $EXECUTE_FILE $EXECUTE_COMMAND $VERBOSE