Permalink
Browse files

Use file contains.

  • Loading branch information...
1 parent 342691a commit f4915d3e78bdefc35f58661ac081ddfc2af47427 @wayneeseguin wayneeseguin committed May 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/install/shell/functions
@@ -221,7 +221,7 @@ install_sm_mustache()
typeset _url
if [[ -s "${install_path}/bin/sm-mustache" ]]
then
- if $(command file) "${install_path}/bin/sm-mustache" | grep 'perl' >/dev/null
+ if file contains "${install_path}/bin/sm-mustache" regexp 'perl'
then file remove "${install_path}/bin/sm-mustache"
fi
fi
@@ -242,7 +242,7 @@ install_sm_json()
typeset _url
if [[ -s "${install_path}/bin/sm-json" ]]
then
- if $(command file) "${install_path}/bin/sm-json" | grep 'perl' >/dev/null
+ if file contains "${install_path}/bin/sm-json" regexp 'perl'
then \file remove "${install_path}/bin/sm-json"
fi
fi

0 comments on commit f4915d3

Please sign in to comment.