We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9619e9c commit f80a3daCopy full SHA for f80a3da
minify.sh
@@ -8,9 +8,18 @@ done
8
9
CHANGED=$(echo $X | tr ' ' '\n' | sort | uniq | xargs)
10
11
-echo "minifying $CHANGED"
+echo "Minifying $CHANGED"
12
#shellspec $CHANGED
13
14
-for word in $CHANGED; do
15
- ./minifier.sh -f="$word/installer.sh" > "$word/installer.min.sh"
+for directory in $CHANGED; do
+ echo "Minifying direcory is: $directory"
16
+ for file in $directory/installer*.sh; do
17
+ case "$file" in
18
+ (*.min.sh) continue;;
19
+ esac
20
+ filename=${file##*/}
21
+ filename=${filename%.sh}
22
+ echo "Minifying $directory/$filename.sh"
23
+ ./minifier.sh -f="$directory/$filename.sh" > "$directory/$filename.min.sh"
24
+ done
25
done
0 commit comments