File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,47 +14,47 @@ cleanup() {
1414}
1515
1616# Buildpack Steps.
17- function puts-step () {
17+ puts-step() {
1818 echo "-----> $@"
1919}
2020
2121# Buildpack Warnings.
22- function puts-warn () {
22+ puts-warn() {
2323 echo " ! $@"
2424}
2525
2626# Usage: $ set-env key value
27- function set-env () {
27+ set-env() {
2828 echo "export $1=$2" >> $PROFILE_PATH
2929}
3030
3131# Usage: $ set-default-env key value
32- function set-default-env () {
32+ set-default-env() {
3333 echo "export $1=\${$1:-$2}" >> $PROFILE_PATH
3434}
3535
3636# Usage: $ set-default-env key value
37- function un-set-env () {
37+ un-set-env() {
3838 echo "unset $1" >> $PROFILE_PATH
3939}
4040
4141# Does some serious copying.
42- function deep-cp () {
42+ deep-cp() {
4343 find -H $1 -maxdepth 1 -name '.*' -a \( -type d -o -type f -o -type l \) -exec cp -a '{}' $2 \;
4444 cp -r $1/!(tmp) $2
4545 # echo copying $1 to $2
4646}
4747
4848# Does some serious moving.
49- function deep-mv () {
49+ deep-mv() {
5050 deep-cp $1 $2
5151
5252 rm -fr $1/!(tmp)
5353 find -H $1 -maxdepth 1 -name '.*' -a \( -type d -o -type f -o -type l \) -exec rm -fr '{}' \;
5454}
5555
5656# Does some serious deleting.
57- function deep-rm () {
57+ deep-rm() {
5858 rm -fr $1/!(tmp)
5959 find -H $1 -maxdepth 1 -name '.*' -a \( -type d -o -type f -o -type l \) -exec rm -fr '{}' \;
6060}
@@ -77,4 +77,4 @@ sub-env() {
7777 $1
7878
7979 )
80- }
80+ }
You can’t perform that action at this time.
0 commit comments