Permalink
Browse files

fix file shabng is

  • Loading branch information...
1 parent f1cc693 commit 147e04c5cd41d78c12d16ec4abd4116cd5091486 @mpapis mpapis committed Aug 29, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 core/api/shell/files/functions
View
8 core/api/shell/files/functions
@@ -164,12 +164,16 @@ files()
done
case "${_command}" in
- (contain|containing|contains|shebang.is)
+ (contains) _command=contain ;;
+ esac
+
+ case "${_command}" in
+ (contain|containing|shebang.is)
[[ -n "${_string}" ]] || [[ -n "${_regex}" ]] ||
__sm.log.fail "regexp or string must be given for 'files ${_command}'."
[[ -n "${_files}" ]] || __sm.log.fail "files must be given for 'files ${_command}'."
- if __sm.files.${_command%s} "${_string}" "${_regex}" "${_files[@]}"
+ if __sm.files.${_command} "${_string}" "${_regex}" "${_files[@]}"
then return 0
else return 1
fi

0 comments on commit 147e04c

Please sign in to comment.