summaryrefslogtreecommitdiff
path: root/arch-nspawn.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2013-08-16 02:18:29 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2017-02-16 14:42:38 -0500
commitf302cbed525fddc4596c6d568a176a1528b88058 (patch)
treeef183433e932c484b38d2286ad7bc5ebe7362d4c /arch-nspawn.in
parent978caaf7de4b7e18d5b9a3763d479ab5a7adae24 (diff)
downloaddevtools32-f302cbed525fddc4596c6d568a176a1528b88058.tar.xz
Avoid using string interpolation; use printf format strings instead.
This involves extending the signature of lib/common.sh's `stat_busy()`, `lock()`, and `slock()`. The `mesg=$1; shift` in stat_busy even suggests that this is what was originally intended from it.
Diffstat (limited to 'arch-nspawn.in')
-rw-r--r--arch-nspawn.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in
index e46b57f..2b17f11 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -34,7 +34,7 @@ while getopts 'hC:M:c:' arg; do
M) makepkg_conf="$OPTARG" ;;
c) cache_dir="$OPTARG" ;;
h|?) usage ;;
- *) error "invalid argument '$arg'"; usage ;;
+ *) error "invalid argument '%s'" "$arg"; usage ;;
esac
done
shift $(($OPTIND - 1))