Skip to content

Commit 538fa7c

Browse files
author
Dorian Stoll
committedJul 30, 2017
Lets see if this works
1 parent 9f958e0 commit 538fa7c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎build/fetch_plugins.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,25 @@ SOURCE_FILE="sdb.go"
33
echo "Reading plugins.txt file..."
44

55
# Implement plugin stuff
6+
FILE=""
67
if [ -e "$PWD/build_$filename" ] ; then
78
rm $PWD/build_$SOURCE_FILE
89
fi
9-
touch $PWD/build_$SOURCE_FILE
1010
while IFS= read -r line; do
1111
if [ "$line" = ")" ]
1212
then
1313
if [ -e "$PWD/build/plugins.txt" ]
1414
then
1515
while IFS= read -r line2; do
16-
printf " _ \"$line2\"\n" >> $PWD/build_$SOURCE_FILE
16+
FILE="$FILE _ \"$line2\"\n"
1717
$GOPATH/bin/glide get $line2 || true
1818
done < $PWD/build/plugins.txt
1919
fi
2020
fi
21-
printf "$line\n" >> $PWD/build_$SOURCE_FILE
21+
FILE="$FILE$line\n"
2222
done < $PWD/$SOURCE_FILE
23+
touch $PWD/build_$SOURCE_FILE
24+
printf "$FILE" >> $PWD/build_$SOURCE_FILE
2325

2426
# We are done
2527
echo "Plugins successfully applied. Please run go build on 'build_$SOURCE_FILE' to complete the build process."

0 commit comments

Comments
 (0)
Please sign in to comment.