lfp


Logs | Files | README | README | LICENSE | GitLab


1
commit f0685c56cdab2d12c74a8f14a5eeb7a3df41394b
2
Author: Connor Etherington <[email protected]>
3
Date:   Sun Sep 24 19:52:37 2023 +0200
4
5
    Auto-Commit Update - 20230924
6
---
7
 usr/share/lfp/lfprc | 6 +++---
8
 1 file changed, 3 insertions(+), 3 deletions(-)
9
10
diff --git a/usr/share/lfp/lfprc b/usr/share/lfp/lfprc
11
index 37d62c7..eac1173 100644
12
--- a/usr/share/lfp/lfprc
13
+++ b/usr/share/lfp/lfprc
14
@@ -145,7 +145,7 @@ EOF
15
     escape_char=$(printf "\u1b")
16
     read -rsn1 mode
17
 
18
-    [[ $mode == $escape_char ]] && read -rsn2 mode
19
+    [[ $mode == $escape_char ]] && read -rsn2 mode || mode=$mode
20
 
21
   }
22
 
23
@@ -278,7 +278,7 @@ EOF
24
     escape_char=$(printf "\u1b")
25
     read -rsn1 mode
26
 
27
-    [[ $mode == $escape_char ]] && read -rsn2 mode
28
+    [[ $mode == $escape_char ]] && read -rsn2 mode || mode=$mode
29
 
30
   }
31
 
32
@@ -380,7 +380,7 @@ Tab   : toggle preview
33
         '[D') clear && getPKGs && for x in ${pkgs[@]}; do installPkg $x; done ;;
34
         '[C') clear && [[ -f "main.py" ]] || { notify-send "🐍 No main.py file found"; return 1; } && notify-send "🐍 Running main.py script..." && runScript main.py ;;
35
         'r') pip3 install -r requirements.txt && notify-send "🐍 Requirements installed" ;;
36
-        'R') clear && { selectPyScript "Select Requirements File: " && pip3 install -r $file && notify-send "🐍 Requirements installed" || notify-send "🐍 Failed to install requirements" "'$file' is not a valid requirements file" ; } ;;
37
+        'R') clear && { selectPyScript "Select Requirements File: " && pip install -r $file; } && notify-send "🐍 Requirements installed" || notify-send "🐍 Failed to install requirements" "'$file' is not a valid requirements file" ;;
38
         'q') exit 0 ;;
39
        *) PyManager ;;
40
       esac