From 1f7008011f37fe2b1ef29a8865a0221d1adeaad0 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Tue, 05 Jan 2016 08:54:39 -0500 Subject: download/coreboot: fix unsafe rm -Rf --- (limited to 'resources/scripts/helpers/download/coreboot') diff --git a/resources/scripts/helpers/download/coreboot b/resources/scripts/helpers/download/coreboot index a080c84..e5e39d1 100755 --- a/resources/scripts/helpers/download/coreboot +++ b/resources/scripts/helpers/download/coreboot @@ -248,7 +248,7 @@ rm -Rf */*/3rdparty/*/.git* # (the build system will create symlinks later when building the ROM images) for payload in *; do if [ "${payload##*/}" != "crossgcc" ]; then - rm -Rf ${payload}/*/util/crossgcc/ + rm -Rf ${payload:?}/*/util/crossgcc/ fi done cd "../" -- cgit v0.9.1