From 575858a3709d03b6348add5721cd02e320b424bf Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 13 Mar 2019 18:50:33 -0400 Subject: Protect against cmd operands beginning with "-" --- (limited to 'src/ob-unpacksource.sh') diff --git a/src/ob-unpacksource.sh b/src/ob-unpacksource.sh index 98b2da1..0716257 100644 --- a/src/ob-unpacksource.sh +++ b/src/ob-unpacksource.sh @@ -114,7 +114,7 @@ extract_upstream() ob_error "$(ob_get_msg 'cant_unpack_upstream')" return 1 fi - if ! mv "${upstream_ar_dir}" 'src'; then + if ! mv -- "${upstream_ar_dir}" 'src'; then ob_error "$(ob_get_msg 'cant_move_native')" return 1 fi -- cgit v0.9.1