Skip to content

Instantly share code, notes, and snippets.

@likai24
Created June 23, 2016 04:29
Show Gist options
  • Save likai24/4ffdb3a3b64193fe44797f5b5049f688 to your computer and use it in GitHub Desktop.
Save likai24/4ffdb3a3b64193fe44797f5b5049f688 to your computer and use it in GitHub Desktop.
简单的模板脚本
#!/usr/bin/env bash
# This file is to setup nginx for php application
#
# @Version : 0.0.1
# @Usage : tpl.sh template
# can not be used to render bash script, use sed instead
#
set -o pipefail
set -o errexit
# set -o xtrace
render() {
eval "echo -e \"$(cat $1)\""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment