This commit is contained in:
anki-code 2020-03-28 13:41:44 +03:00
parent 0083e11e8d
commit 2d79a42fe8

View File

@ -13,6 +13,7 @@
# -b <BASE64> -b ... Base64 encoded bash command # -b <BASE64> -b ... Base64 encoded bash command
# -H <homepath> Home path. Will be $HOME on the host. # -H <homepath> Home path. Will be $HOME on the host.
# #
while getopts f:c:C:v:e:b:H: option while getopts f:c:C:v:e:b:H: option
do do
case "${option}" case "${option}"
@ -78,9 +79,9 @@ if [[ $EXECUTE_FILE ]]; then
EXECUTE_COMMAND="" EXECUTE_COMMAND=""
fi fi
## Example of adding argument `-f` before # Example of adding argument `-f` before
#EXECUTE_FILE=`[ $EXECUTE_FILE ] && echo -n "-f $EXECUTE_FILE" || echo -n ""` EXECUTE_FILE=`[ $EXECUTE_FILE ] && echo -n "-f $EXECUTE_FILE" || echo -n ""`
#
# #
# Move to current directory # Move to current directory
@ -109,7 +110,4 @@ fi
# #
# Run the portable shell # Run the portable shell
# #
./your_portable_shell ./your_portable_shell # $EXECUTE_FILE "${EXECUTE_COMMAND[@]}"
# Example:
# ./your_portable_shell $EXECUTE_FILE "${EXECUTE_COMMAND[@]}"