Skip to content

Commit c188eb9

Browse files
committed
...
1 parent 78c590e commit c188eb9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.ci/bundle.bash

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ OUT="__bundle__"
1010

1111

1212
bundle-library() {
13-
cat > "$OUT/lib.bundle.bash" <<ENDBANNER
13+
cat > "$OUT/lib._bundle_.bash" <<ENDBANNER
1414
#########
1515
#
1616
# MageOps Bash Tools Library Bundle
@@ -27,16 +27,16 @@ $(git log --pretty=oneline --abbrev-commit --decorate=full -5 | sed 's/^/#
2727
ENDBANNER
2828

2929
find "$LIB/" -type f -iname '*.bash' | while read LIBMODULE ; do
30-
echo -e "\n\n####### BEGIN Library Module: $LIBMODULE #######\n" >> "$OUT/lib.bundle.bash"
31-
cat "$LIBMODULE" >> "$OUT/lib.bundle.bash" | head -1
32-
echo -e "\n####### END Library Module: $LIBMODULE #######" >> "$OUT/lib.bundle.bash"
30+
echo -e "\n\n####### BEGIN Library Module: $LIBMODULE #######\n" >> "$OUT/lib._bundle_.bash"
31+
cat "$LIBMODULE" >> "$OUT/lib._bundle_.bash" | head -1
32+
echo -e "\n####### END Library Module: $LIBMODULE #######" >> "$OUT/lib._bundle_.bash"
3333
done
3434
}
3535

3636
bundle-script() {
3737
SCRIPT="$1"
3838
OUTFILE="$2"
39-
NAME="${SCRIPT%.bash}"
39+
OUTFILE="${OUTFILE%.bash}._bundle_.bash"
4040

4141
cat > "$OUTFILE" <<ENDBANNER
4242
#!/usr/bin/env bash
@@ -48,7 +48,7 @@ bundle-script() {
4848
#########
4949
ENDBANNER
5050

51-
cat "$OUT/lib.bundle.bash" | tail -n+2 >> "$OUTFILE"
51+
cat "$OUT/lib._bundle_.bash" | tail -n+2 >> "$OUTFILE"
5252

5353
ENDBANNER
5454

@@ -60,7 +60,7 @@ ENDBANNER
6060
ui::step "Clean $(ui::em $OUT)" \
6161
rm -rf "$OUT" '&&' mkdir -p "$OUT"
6262

63-
ui::step "Bundle library files to $(ui::em $OUT/lib.bundle.bash)" \
63+
ui::step "Bundle library files to $(ui::em $OUT/lib._bundle_.bash)" \
6464
bundle-library
6565

6666
find bin -type f -iname '*.bash' | while read SCRIPT ; do

0 commit comments

Comments
 (0)