mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-28 15:11:55 +00:00
Pass argument list directly to functions that use them; quote arguments when used.
This commit is contained in:
parent
a614865d35
commit
b7711b2b97
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ versiongit() {
|
||||||
}
|
}
|
||||||
|
|
||||||
versionsvn() {
|
versionsvn() {
|
||||||
svnrevision="$(svnversion -n $1)"
|
svnrevision="$(svnversion -n "$1")"
|
||||||
version "Subversion" "r$svnrevision";
|
version "Subversion" "r$svnrevision";
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
@ -35,10 +35,10 @@ versionfake() {
|
||||||
compversion() {
|
compversion() {
|
||||||
touch "$path/comptime.c"
|
touch "$path/comptime.c"
|
||||||
versionfake
|
versionfake
|
||||||
[ -d "$path/.svn" ] && versionsvn
|
[ -d "$path/.svn" ] && versionsvn "$@"
|
||||||
[ -d "$path/../.git" ] && versiongit
|
[ -d "$path/../.git" ] && versiongit
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
[ -f "$path/comptime.c" ] && compversion
|
[ -f "$path/comptime.c" ] && compversion "$@"
|
||||||
exit 2
|
exit 2
|
||||||
|
|
Loading…
Reference in a new issue