* After action continue with any key, not just enter.
authorUrban Wallasch <urban.wallasch@freenet.de>
Sat, 11 Apr 2020 14:27:15 +0000 (16:27 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Sat, 11 Apr 2020 14:27:15 +0000 (16:27 +0200)
* Removed grep from prerequisites.
* Bumped version to 2.0.1.

XbpsUI.sh

index e6c1d5d981cd69c3006fcdd319fc9f0af8e1894d..20d4ab1b5f07427a75a4c30d72ffff3ebd1475eb 100755 (executable)
--- a/XbpsUI.sh
+++ b/XbpsUI.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-verstr="XbpsUI 2.0"
+verstr="XbpsUI 2.0.1"
 
 # Evaluate command line:
 for arg in "$@" ; do
@@ -36,7 +36,7 @@ fi
 
 # Check/install essential prerequisites:
 pinst=""
-preq="fzf gawk grep"
+preq="fzf gawk"
 [[ "$use_dialog" == "1" ]] && preq="dialog $preq"
 for cmd in $preq ; do
     if ! command -pv "$cmd" > /dev/null ; then
@@ -463,8 +463,8 @@ function statrep() {
         42 ) echo -e "\e[7m [NO CHANGES REQUESTED] \e[0m" ;;
          * ) echo -e "\e[41m [FAILED] \e[0m" ;;
     esac
-    echo "Press ENTER to continue ..."
-    read
+    echo "Press any key to continue ..."
+    read -sn1
 }
 
 # Main loop: