Browse files

sm-json and sm-mustache remove if symlink.

  • Loading branch information...
1 parent b53db33 commit 90369497cbd7a9f29f70541991f762a4457745f0 @wayneeseguin wayneeseguin committed Jun 6, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 core/install/shell/functions
View
8 core/install/shell/functions
@@ -240,7 +240,8 @@ install_sm_mustache()
typeset _url
if [[ -s "${install_path}/bin/sm-mustache" ]]
then
- if file contains "${install_path}/bin/sm-mustache" regexp 'perl'
+ if file is symlink "${install_path}/bin/sm-mustache" ||
+ file contains "${install_path}/bin/sm-mustache" regexp 'perl'
then file remove "${install_path}/bin/sm-mustache"
fi
fi
@@ -261,8 +262,9 @@ install_sm_json()
typeset _url
if [[ -s "${install_path}/bin/sm-json" ]]
then
- if file contains "${install_path}/bin/sm-json" regexp 'perl'
- then \file remove "${install_path}/bin/sm-json"
+ if file is symlink "${install_path}/bin/sm-json" ||
+ file contains "${install_path}/bin/sm-json" regexp 'perl'
+ then file remove "${install_path}/bin/sm-json"
fi
fi

0 comments on commit 9036949

Please sign in to comment.