Skip to content
This repository has been archived by the owner on Jun 6, 2020. It is now read-only.

Commit

Permalink
Added option to set/change file mode
Browse files Browse the repository at this point in the history
  • Loading branch information
G. Roggemans committed Jun 13, 2016
1 parent d26557f commit f4fd85d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/compiler.bash
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ load log
EC_COMMENT="${EC_COMMENT:-"#"}"
EC_PROMPT="${EC_PROMPT:-"_>"}"

EC_FILE_MODE="644"

##############################################################################

# Return codes used by the line parser
Expand Down Expand Up @@ -92,6 +94,9 @@ compiler.compile() {
exit 1
fi

# Set correct file mode
chmod "$EC_FILE_MODE" "$dest"

log.ok "Successfully compiled $file_name"
compiler.cleanup
}
Expand Down

0 comments on commit f4fd85d

Please sign in to comment.