Permalink
Browse files

split bunzip into 2 lines, the one-liner fails in RHEL4 for some reas…

…on. 2 lines works for RHEL4, RHEL5, Ubuntu, and MacOS, have not tested anything else
  • Loading branch information...
1 parent 7479f5c commit 1c133469306fc61d42679f196f0cddad56226f68 @adevadeh adevadeh committed May 19, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/manage
View
3 scripts/manage 100755 → 100644
@@ -1354,7 +1354,8 @@ __rvm_fetch_ruby()
fi
;;
tar.bz2)
- __rvm_run "extract" "bunzip2 < '${rvm_archives_path}/$rvm_ruby_package_file.$rvm_archive_extension' | tar xf - -C ${rvm_tmp_path:-/tmp}/rvm_src_$$" "$rvm_ruby_string - #extracting $rvm_ruby_package_file to ${rvm_src_path}/$rvm_ruby_string"
+ __rvm_run "extract" "bunzip2 '${rvm_archives_path}/$rvm_ruby_package_file.$rvm_archive_extension'"
+ __rvm_run "extract" "tar xf ${rvm_archives_path}/$rvm_ruby_package_file.tar -C ${rvm_tmp_path:-/tmp}/rvm_src_$$" "$rvm_ruby_string - #extracting $rvm_ruby_package_file to ${rvm_src_path}/$rvm_ruby_string"
result=$?
if (( result > 0 ))

0 comments on commit 1c13346

Please sign in to comment.