minor changed

This commit is contained in:
Pin
2022-03-30 20:36:43 -04:00
parent ec7c907ced
commit 6353a6b7fd
2 changed files with 1 additions and 12 deletions

2
msh.c
View File

@@ -136,7 +136,7 @@ char *getPrompt() {
execlp("bash", "bash", "-i", "-c", "\
ver=$(bash --version | head -n 1 | awk \'{print $4}\' | grep -o \"...\");\
check_ver=$(echo -e \"${ver}\n4.3\" | sort -V | head -n 1);\
if [[ \"${check_ver}\" == \"4.3\" ]]; then\
if [[ \"${ver}\" == \"${check_ver}\" ]]; then\
echo \"[${USER}]\";\
else\
echo \"${PS1@P}\";\