]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
lib.sh: add missing quotes
authorSimon Ruderich <simon@ruderich.org>
Sun, 3 Jun 2018 16:10:16 +0000 (18:10 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 3 Jun 2018 16:10:16 +0000 (18:10 +0200)
Found by shellcheck.

lib.sh

diff --git a/lib.sh b/lib.sh
index 6a619027db7e7ae1046a66be85f9b1102fc3ab3b..bb60c521b959d79ecba52b33dd7e9c4bcd74de36 100644 (file)
--- a/lib.sh
+++ b/lib.sh
@@ -120,9 +120,9 @@ os() {
         echo debian
     elif test -f /etc/gentoo-release; then
         echo gentoo
-    elif test x`uname` = xSunOS; then
+    elif test x"`uname`" = xSunOS; then
         echo sun
-    elif test x`uname` = xFreeBSD; then
+    elif test x"`uname`" = xFreeBSD; then
         echo freebsd
     else
         echo 'unsupported OS!' >&2