Browse files

exit code tracking

  • Loading branch information...
1 parent 6145fd5 commit 4e6dd594487eb8dadf8892a99c9c30db2dcf7849 @keenerd committed Nov 9, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 pacmatic
View
3 pacmatic
@@ -157,6 +157,9 @@ esac
old_pc=`pacnew_count`
$pacman_program $*
+exit_code=$?
+exit_time=`date "+[%F %H:%M]"`
+echo "$exit_time Exited with code $exit_code" >> /var/log/pacman.log
new_pc=`pacnew_count`
add_pc=$(( $new_pc - $old_pc ))

0 comments on commit 4e6dd59

Please sign in to comment.