Skip to content
Browse files

`rip-list > deps.rip` assumes `rip-list -p`

  • Loading branch information...
1 parent bfbde32 commit 58cb9a074358f424c67f90f34f099e15295295e6 @defunkt committed May 10, 2010
Showing with 7 additions and 6 deletions.
  1. +4 −4 README.md
  2. +3 −2 bin/rip-list
View
8 README.md
@@ -172,10 +172,10 @@ Introspection:
Environments:
- $ rip-envs
- $ rip-env -c NEW_RIPENV
- $ rip-env -d RIPENV_TO_DELETE
- $ rip-env RIPENV_TO_SWITCH_TO
+ $ rip-envs
+ $ rip-env -c NEW_RIPENV
+ $ rip-env -d RIPENV_TO_DELETE
+ $ rip-env RIPENV_TO_SWITCH_TO
Spring cleaning:
View
5 bin/rip-list
@@ -5,7 +5,8 @@
# If RIPENV is omitted shows installed packages for the current
# RIPENV.
#
-# If -p is passed, prints in a "parseable" deps.rip format.
+# If -p is passed or standard out is redirect, prints in a "parseable"
+# deps.rip format.
#
# If -m is passed, prints the minimal list of packages needed to
# duplicate the current ripenv.
@@ -16,7 +17,7 @@ if ARGV.delete('-m')
exec "rip-list-minimal"
end
-parse = ARGV.delete('-p')
+parse = ARGV.delete('-p') || !$stdout.tty?
puts "ripenv: #{RIPENV}", "" unless parse

0 comments on commit 58cb9a0

Please sign in to comment.
Something went wrong with that request. Please try again.