commit | c0475fd9187ac26d3481a9a0341ba823fb8d1350 | [log] [tgz] |
---|---|---|
author | Carlos Sanchez <carlos@apache.org> | Wed Apr 29 11:55:48 2015 +0200 |
committer | Carlos Sanchez <carlos@apache.org> | Wed Apr 29 11:55:51 2015 +0200 |
tree | a8bbfe906cebba0e0788b19f517766016b11d068 | |
parent | 47516fc7afb9bef9c7a06809b6e5c3308ebc4a5a [diff] |
Issue #46 Last line of plugins.txt ignored if a new line is not present on that last line
diff --git a/plugins.sh b/plugins.sh index 8fe2e97..7c224f2 100755 --- a/plugins.sh +++ b/plugins.sh
@@ -11,7 +11,7 @@ REF=/usr/share/jenkins/ref/plugins mkdir -p $REF -while read spec; do +while read spec || [ -n "$spec" ]; do plugin=(${spec//:/ }); [[ ${plugin[0]} =~ ^# ]] && continue [[ ${plugin[0]} =~ ^\s*$ ]] && continue