Permalink
Browse files

Use the correct form of the md5sum command.

  • Loading branch information...
1 parent e499484 commit 3fd267e3a4fc01e53e3d3bd15fe0cfadcfc8622b @nirvdrum committed Jun 26, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 completions/cap.fish
  2. +1 −1 completions/rake.fish
  3. +1 −1 functions/rdir.fish
@@ -1,6 +1,6 @@
function __cache_or_get_cap_completion -d "Create cap completions"
mkdir -p "/tmp/cap_completion_cache"
- set -l hashed_pwd (md5sum -q -s (pwd))
+ set -l hashed_pwd (echo (pwd) | md5sum)
set -l cap_cache_file "/tmp/cap_completion_cache/$hashed_pwd"
if not test -f "$cap_cache_file"
@@ -1,6 +1,6 @@
function __cache_or_get_rake_completion -d "Create rake completions"
mkdir -p "/tmp/rake_completion_cache_for_$USER"
- set -l hashed_pwd (md5sum -q -s (pwd))
+ set -l hashed_pwd (echo (pwd) | md5sum)
set -l rake_cache_file "/tmp/rake_completion_cache_for_$USER/$hashed_pwd"
if not test -f "$rake_cache_file"
View
@@ -6,7 +6,7 @@ function rdir -d "Find dir for rails project"
echo "Cache cleaned"
else
if test "$argv"
- set -l hashed_project (md5sum -q -s "$argv")
+ set -l hashed_project (echo $argv | md5sum)
set -l rdir_cache_file "/tmp/rdir_cache/$hashed_project"
if not test -f "$rdir_cache_file"
find ~/**/$argv/config/environment.rb | head -n 1 | sed -e 's/\/config\/environment.rb$//g' > "$rdir_cache_file"

0 comments on commit 3fd267e

Please sign in to comment.