mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-24 13:21:20 +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() {
|
||||
svnrevision="$(svnversion -n $1)"
|
||||
svnrevision="$(svnversion -n "$1")"
|
||||
version "Subversion" "r$svnrevision";
|
||||
exit 0
|
||||
}
|
||||
|
@ -35,10 +35,10 @@ versionfake() {
|
|||
compversion() {
|
||||
touch "$path/comptime.c"
|
||||
versionfake
|
||||
[ -d "$path/.svn" ] && versionsvn
|
||||
[ -d "$path/.svn" ] && versionsvn "$@"
|
||||
[ -d "$path/../.git" ] && versiongit
|
||||
exit 1
|
||||
}
|
||||
|
||||
[ -f "$path/comptime.c" ] && compversion
|
||||
[ -f "$path/comptime.c" ] && compversion "$@"
|
||||
exit 2
|
||||
|
|
Loading…
Reference in a new issue