Permalink
Browse files

Correctly chmod bin binaries.

  • Loading branch information...
1 parent 92d7c92 commit 4075a400d221dc003f4392d3e63d7c56c6c1aacb @wayneeseguin wayneeseguin committed Sep 8, 2011
Showing with 5 additions and 8 deletions.
  1. +0 −3 core/api/shell/files/functions
  2. +5 −5 core/install/shell/functions
@@ -85,12 +85,10 @@ files()
shift || Fail "Mode must follow keywords 'mode|permissions'"
;;
(chmod)
- _command=chmod
_mode="${1}"
shift || Fail "Mode must follow keywords 'chmod'"
;;
(chown)
- _command=chown
_owner="${1}"
shift || fail "Owner must be provided after keyword 'owner'"
;;
@@ -185,7 +183,6 @@ files()
[[ -n "${_target}" ]] || fail "Target must be given; to {file name}."
__sm.files.write "${_string}" "${_target}" "${_flags[*]}"
;;
-# (chown|chmod) log "Handled bellow" ;;
(*)
if [[ -z "${_owner}" && -z "${_mode}" ]]
then
@@ -176,11 +176,11 @@ set_sm_path()
make_binaries_executable()
{
-# local _binary
-# for _binary in "${binaries[@]}"
-# do
- files chmod 0755 in "${install_path}/bin" "${binaries[@]}"
-# done
+ local _binary
+ for _binary in "${binaries[@]}"
+ do
+ file chmod 0755 "${install_path}/bin/${_binary}"
+ done
}
create_versionedfs_paths()

0 comments on commit 4075a40

Please sign in to comment.