summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-02-18 21:21:28 +0100
committerErich Eckner <git@eckner.net>2018-02-18 21:21:28 +0100
commitfab8768bd2723425ed34256ff7b7a08eeb0bd373 (patch)
treef28ec3941164693dcae799d6a6733a4d9d0569e1 /bin
parentf05923eda5d3a307f7fbfb44e451fd9441222aae (diff)
downloadbuilder-fab8768bd2723425ed34256ff7b7a08eeb0bd373.tar.xz
bin/get-assignment: fix mysql parser to understand columns with spaces correctly
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-assignment2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/get-assignment b/bin/get-assignment
index 3dbd386..e3299f6 100755
--- a/bin/get-assignment
+++ b/bin/get-assignment
@@ -218,7 +218,7 @@ next_building=$(
sed '
1d
y/\t/ /
- s/^\(\S\+ \)\{4\}//
+ s/^.* \(\S\+\( \S\+\)\{3\}\)$/\1/
'
)
if [ -n "${next_building}" ]; then