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() {
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