Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:sm/sm

  • Loading branch information...
commit 9179052a9044c91b97d089b85e61d42ace526778 2 parents c2ebd64 + 5b65a35
@mpapis mpapis authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 core/internal/shell/ini/functions
View
12 core/internal/shell/ini/functions
@@ -15,6 +15,16 @@ __sm.ini.parse() {
}
__sm.ini.load() {
- eval "$(__sm.ini.parse "${1}")"
+ local _content _keys
+
+ _content=$(__sm.ini.parse "${1}")
+
+ _keys=($( echo ${_content} | sed -e 's/=[^;]*//g' -e 's/;//g'))
+
+ for _key in ${_keys[@]}
+ do typeset -g ${_key}
+ done
+
+ eval "${_content}"
}
Please sign in to comment.
Something went wrong with that request. Please try again.