minor changed
This commit is contained in:
2
msh.c
2
msh.c
@@ -134,7 +134,7 @@ char *getPrompt() {
|
|||||||
close(STDERR_FILENO); // Do not print errors to the screen
|
close(STDERR_FILENO); // Do not print errors to the screen
|
||||||
|
|
||||||
execlp("bash", "bash", "-i", "-c", "\
|
execlp("bash", "bash", "-i", "-c", "\
|
||||||
ver=$(bash --version | head -n 1 | awk \'{print $4}\' | grep -o \"...\");\
|
ver=$(bash --version | head -n 1 | awk \'{print $4}\' | grep -o \".\\..\");\
|
||||||
check_ver=$(echo -e \"${ver}\n4.3\" | sort -V | head -n 1);\
|
check_ver=$(echo -e \"${ver}\n4.3\" | sort -V | head -n 1);\
|
||||||
if [[ \"${ver}\" == \"${check_ver}\" ]]; then\
|
if [[ \"${ver}\" == \"${check_ver}\" ]]; then\
|
||||||
echo \"[${USER}]\";\
|
echo \"[${USER}]\";\
|
||||||
|
|||||||
Reference in New Issue
Block a user