dglob: Handle case of colon, but nothing behind it
Gbp-Dch: Ignore
Axel Beckert
6 years ago
63 | 63 |
package=$(echo "$pattern" | awk -F: '{print $1}')
|
64 | 64 |
arch=$(echo "$pattern" | awk -F: '{print $2}')
|
65 | 65 |
archfilter="grep-dctrl -FArchitecture $arch"
|
|
66 |
if [ -z "$arch" ]; then
|
|
67 |
echo "Empty architecture (but colon) not allowed" 1>&2
|
|
68 |
exit 2
|
|
69 |
fi
|
66 | 70 |
else
|
67 | 71 |
package="$pattern"
|
68 | 72 |
fi
|