4
0
Эх сурвалжийг харах

codacy: Use "${var:?}" to ensure this never expands to /* .

Daniel Gibbs 7 жил өмнө
parent
commit
6ee091b5a7

+ 1 - 1
lgsm/functions/core_dl.sh

@@ -25,7 +25,7 @@ local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 fn_clear_tmp(){
 	echo -en "clearing LinuxGSM tmp directory..."
 	if [ -d "${tmpdir}" ]; then
-		rm -rf "${tmpdir}/"*
+		rm -rf "${tmpdir:?}/"*
 		local exitcode=$?
 		if [ ${exitcode} -eq 0 ]; then
 			fn_print_ok_eol_nl