]> git.pld-linux.org Git - packages/abrt.git/blob - profile.sh.patch
profile script: do not leak vars, do not run if not interactive
[packages/abrt.git] / profile.sh.patch
1 --- abrt-2.2.0/src/cli/abrt-console-notification.sh~    2013-09-13 15:23:35.000000000 +0300
2 +++ abrt-2.2.0/src/cli/abrt-console-notification.sh     2014-05-05 09:13:58.060354676 +0300
3 @@ -1,3 +1,6 @@
4 +# Not an interactive shell?
5 +[[ $- == *i* ]] || return 0
6 +
7  LPATHDIR="$HOME/.cache/abrt"
8  SINCEFILE="$LPATHDIR/lastnotification"
9  
10 @@ -19,3 +22,5 @@
11  fi
12  
13  abrt-cli status --since="$SINCE" 2> /dev/null
14 +
15 +unset LPATHDIR SINCEFILE TMPPATH
This page took 0.081398 seconds and 3 git commands to generate.