]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
fix pdksh incompatibility of ok/fail printing
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 27 Jul 2013 10:55:41 +0000 (10:55 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Sat, 27 Jul 2013 10:55:41 +0000 (10:55 +0000)
svn-id: @12712

lib/functions

index ef420857d6203ef638e4104dfc18b73df32bd088..e90ae013adb004e1f01159b0f337df62f565b915 100644 (file)
@@ -462,7 +462,7 @@ busy() {
 }
 
 ok() {
-       echo -ne "$_ok${RC_FEDORA+\r}${RC_FEDORA-\n}"
+       echo -ne "$_ok${RC_FEDORA+\\r}${RC_FEDORA-\\n}"
 }
 
 started() {
@@ -470,7 +470,7 @@ started() {
 }
 
 fail() {
-       echo -ne "$_fail${RC_FEDORA+\r}${RC_FEDORA-\n}"
+       echo -ne "$_fail${RC_FEDORA+\\r}${RC_FEDORA-\\n}"
        return 1
 }
 
This page took 0.044745 seconds and 4 git commands to generate.