commitpkg: Proper quoting in version control checks
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
parent
e63c5f26a2
commit
c8ba49c6a1
|
@ -78,9 +78,9 @@ case "$repo" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# check if all local source files are under version control
|
# check if all local source files are under version control
|
||||||
for s in ${source[@]}; do
|
for s in "${source[@]}"; do
|
||||||
echo $s | grep -Fvq '://' && \
|
echo "$s" | grep -Fvq '://' && \
|
||||||
svn status $s | grep -q '^\?' && \
|
svn status "$s" | grep -q '^\?' && \
|
||||||
abort "$s is not under version control"
|
abort "$s is not under version control"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ for i in 'changelog' 'install'; do
|
||||||
for file in $filelist; do
|
for file in $filelist; do
|
||||||
# evaluate any bash variables used
|
# evaluate any bash variables used
|
||||||
eval file=${file}
|
eval file=${file}
|
||||||
if svn status ${file} | grep -q '^\?'; then
|
if svn status "${file}" | grep -q '^\?'; then
|
||||||
abort "${file} is not under version control"
|
abort "${file} is not under version control"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue