Pass argument list directly to functions that use them; quote arguments when used.

This commit is contained in:
GoldenTails 2022-03-27 21:23:32 -05:00
parent a614865d35
commit b7711b2b97

View file

@ -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