Browse Source

Solved pagination problem with "more"

Matteo Savatteri 5 years ago
parent
commit
7098f3e0ef
2 changed files with 3 additions and 3 deletions
  1. 2 2
      helper_functions
  2. 1 1
      license_functions

+ 2 - 2
helper_functions

@@ -82,9 +82,9 @@ paginate(){
   if [ -n "$PAGER" ]
   then
     $PAGER
-  elif which more 2>/dev/null || echoerr "Failed to paginate input with "$PAGER"."
+  elif which more &>/dev/null || echoerr "Failed to paginate input with "$PAGER"."
   then
-    more 2>/dev/null || echoerr "Failed to paginate input with "more"."
+    more || echoerr "Failed to paginate input with "more"."
   else
     echoerr "No default pager set and "more" binary not found."
   fi

+ 1 - 1
license_functions

@@ -687,7 +687,7 @@ paginate_license(){
 # Mostra la licenza e notifica
 show_license(){
   paginate_license
-  echo -e "\nShiftctl is \e[0;32mFreeSoftware\e[0m, and is written with \e[0;32myour freedom\e[0m in mind.\n"
+  echo -e "\n\n\nShiftctl is \e[0;32mFreeSoftware\e[0m, and is written with \e[0;32myour freedom\e[0m in mind.\n"
 
   return 0
 }