File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3,23 +3,25 @@ SOURCE_FILE="sdb.go"
3
3
echo " Reading plugins.txt file..."
4
4
5
5
# Implement plugin stuff
6
+ FILE=" "
6
7
if [ -e " $PWD /build_$filename " ] ; then
7
8
rm $PWD /build_$SOURCE_FILE
8
9
fi
9
- touch $PWD /build_$SOURCE_FILE
10
10
while IFS= read -r line; do
11
11
if [ " $line " = " )" ]
12
12
then
13
13
if [ -e " $PWD /build/plugins.txt" ]
14
14
then
15
15
while IFS= read -r line2; do
16
- printf " _ \" $line2 \" \n" >> $PWD /build_ $SOURCE_FILE
16
+ FILE= " $FILE _ \" $line2 \" \n"
17
17
$GOPATH /bin/glide get $line2 || true
18
18
done < $PWD /build/plugins.txt
19
19
fi
20
20
fi
21
- printf " $ line \n" >> $PWD /build_ $SOURCE_FILE
21
+ FILE= " $FILE$ line \n"
22
22
done < $PWD /$SOURCE_FILE
23
+ touch $PWD /build_$SOURCE_FILE
24
+ printf " $FILE " >> $PWD /build_$SOURCE_FILE
23
25
24
26
# We are done
25
27
echo " Plugins successfully applied. Please run go build on 'build_$SOURCE_FILE ' to complete the build process."
You can’t perform that action at this time.
0 commit comments