Skip to content

Commit

Permalink
Fix incorrect home path
Browse files Browse the repository at this point in the history
  • Loading branch information
ysdragon committed Nov 26, 2024
1 parent c3ab528 commit 9fc633d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV DEBIAN_FRONTEND=noninteractive
# Set the PRoot version
ENV PROOT_VERSION=5.4.0

# Install necessary packages and PRoot
# Install necessary packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
bash \
Expand Down
5 changes: 2 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ if [ ! -e "/.installed" ]; then
touch "/.installed"
fi


printf "\033c"
printf "${GREEN}Starting..${NC}\n"
sleep 1
Expand All @@ -46,8 +45,8 @@ cleanup() {
get_formatted_dir() {
current_dir="$PWD"
case "$current_dir" in
/root*)
printf "~${current_dir#/root}"
"$HOME"*)
printf "~${current_dir#$HOME}"
;;
*)
printf "$current_dir"
Expand Down

0 comments on commit 9fc633d

Please sign in to comment.