From 3aca3b64077cfdb5132c08958c5e0e873aca89d2 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 16 Aug 2013 02:20:09 -0400 Subject: Avoid having code/variables in format strings. --- checkpkg.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'checkpkg.in') diff --git a/checkpkg.in b/checkpkg.in index 8e0f574..ac4226c 100644 --- a/checkpkg.in +++ b/checkpkg.in @@ -35,7 +35,7 @@ for _pkgname in "${pkgname[@]}"; do elif [[ -f "$PKGDEST/$pkgfile" ]]; then ln -s "$PKGDEST/$pkgfile" "$pkgfile" else - die "File \"$pkgfile\" doesn't exist" + die "File \"%s\" doesn't exist" "$pkgfile" fi pkgurl=$(pacman -Spdd --print-format '%l' --noconfirm "$_pkgname") @@ -80,4 +80,4 @@ for _pkgname in "${pkgname[@]}"; do fi done -msg "Files saved to $TEMPDIR" +msg "Files saved to %s" "$TEMPDIR" -- cgit v1.2.3