Replace echo -e with printf for portable ANSI banners
dash (Debian's /bin/sh) doesn't support echo's -e flag: it prints "-e" literally as text before processing the rest of the string's backslash escapes. Every script's colored banner was affected. printf's escape handling is POSIX-mandated and behaves identically under dash and bash, so swap all 90 echo -e calls for printf, appending the trailing \n that echo used to add implicitly. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+3
-3
@@ -1,14 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo -e '\033[35m
|
||||
printf '\033[35m
|
||||
__
|
||||
_ __ / _|___
|
||||
| _ \| |_/ __|
|
||||
| | | | _\__ \
|
||||
|_| |_|_| |___/
|
||||
|
||||
\033[0m'
|
||||
echo -e "\033[35;1mLEMP server (Nginx Mysql Php-fpm) \033[0m"
|
||||
\033[0m\n'
|
||||
printf "\033[35;1mLEMP server (Nginx Mysql Php-fpm) \033[0m\n"
|
||||
|
||||
|
||||
apt install nfs-kernel-server
|
||||
|
||||
Reference in New Issue
Block a user