Browse Source

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

Alois Mahdal 10 years ago
parent
commit
f76dcac790
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      dotfiles/bash/post.bashrc

+ 1
- 2
dotfiles/bash/post.bashrc View File

@@ -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 ];