Skip to content
Browse files

Check for and remove old perl sm-* scripts.

  • Loading branch information...
1 parent 397d4cf commit 68c65e41b5151c2aefabfed96b2c4f46ca2c4bc7 @wayneeseguin wayneeseguin committed May 4, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 core/install/shell/functions
View
9 core/install/shell/functions
@@ -219,6 +219,10 @@ create_versionedfs_paths()
install_sm_mustache()
{
typeset _url
+ if file "${install_path}/bin/sm-mustache" | grep 'perl' >/dev/null
+ then file remove "${install_path}/bin/sm-mustache"
+ fi
+
if ! file is executable "${install_path}/bin/sm-mustache"
then
__sm.log.step "Downloading sm-mustache."
@@ -232,8 +236,11 @@ install_sm_mustache()
install_sm_json()
{
return 0 # Remove this line once sm-json is ready.
-
typeset _url
+ if file "${install_path}/bin/sm-json" | grep 'perl' >/dev/null
+ then file remove "${install_path}/bin/sm-json"
+ fi
+
if ! file is executable "${install_path}/bin/sm-json"
then
__sm.log.step "Downloading sm-json"

0 comments on commit 68c65e4

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