Skip to content

Commit

Permalink
Fix prompt (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored Sep 4, 2020
1 parent 37947a1 commit 3671dc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rootfs/usr/bin/cli.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash

cat /etc/welcome.txt
sleep 1

# Run CLI
COMMAND=""
while true; do
echo -n $'\e[32mha > \e[0m'
# shellcheck disable=SC2016
COMMAND="$(rlwrap -H /tmp/.cli_history sh -c 'read -r CMD && echo $CMD')"
COMMAND="$(rlwrap -S $'\e[32mha > \e[0m' -H /tmp/.cli_history sh -c 'read -r CMD && echo $CMD')"

# Abort to host?
if [ "$COMMAND" == "login" ]; then
Expand Down

0 comments on commit 3671dc0

Please sign in to comment.