Bläddra i källkod

Read lastrv in one step, now that the file will exist

Alois Mahdal 10 år sedan
förälder
incheckning
f76dcac790
1 ändrade filer med 1 tillägg och 2 borttagningar
  1. 1
    2
      dotfiles/bash/post.bashrc

+ 1
- 2
dotfiles/bash/post.bashrc Visa fil

@@ -10,8 +10,7 @@
10 10
 
11 11
 __make_ps1d() {
12 12
     local rvfile="/var/tmp/bash-rv/$$.lastrv"
13
-    local lastrv
14
-    read lastrv <<<$(cat $rvfile 2>/dev/null)
13
+    local lastrv=$(cat $rvfile)
15 14
     local do_rm=false
16 15
     test "$1" == "-r" && do_rm=true
17 16
     if [ 0$lastrv -gt 0 ];