From d958a33c1f0e11b770481a9188cbf75cc3bfd0a5 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 20 Apr 2017 21:50:58 -0400 Subject: Quote unquoted strings that should probably be quoted. These were found with the help of shellcheck. Nothing more complicated than wrapping a variable in double quotes has been done. --- src/aur | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/aur') diff --git a/src/aur b/src/aur index 84dc984..f904a16 100755 --- a/src/aur +++ b/src/aur @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Copyright (C) 2010-2011 Joshua Ismael Haase Hernández (xihh) # Copyright (C) 2010-2012 Nicolás Reynolds -# Copyright (C) 2012-2014 Luke Shumaker +# Copyright (C) 2012-2014, 2017 Luke Shumaker # # License: GNU GPLv3+ # @@ -66,7 +66,7 @@ main() { # Store our copy of the PKGBUILD dir copy_old=$copy_new - copy_new="$(mktemp --tmpdir -d aur-${pkg}.new.XXXX)/$pkg" + copy_new="$(mktemp --tmpdir -d "aur-${pkg}.new.XXXX")/$pkg" cd "${copy_new%/*}" fi @@ -123,10 +123,10 @@ main() { msg2 "Checking dependencies" for _dep in "${_deps[@]}"; do _dep=${_dep/[<>=]*/} - if ! is_built $_dep; then + if ! is_built "$_dep"; then if ! pacman -Sddp "$_dep" &>/dev/null ; then plain "%s: will be downloaded from AUR" "$_dep" - missing_deps+=($_dep) + missing_deps+=("$_dep") fi else plain "%s: is on repos" "$_dep" -- cgit v1.2.3-54-g00ecf