From 2119ebe49a3e2372de7791dce841058bdcb55de3 Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Mon, 1 Oct 2018 14:06:43 +0000 Subject: 9860 cpio_cleanup: $tarchive is already fully-qualified Reviewed by: Igor Kozhukhov Reviewed by: Toomas Soome Reviewed by: Andrew Stormont Approved by: Robert Mustacchi --- usr/src/cmd/boot/scripts/create_ramdisk.ksh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr/src/cmd/boot/scripts/create_ramdisk.ksh b/usr/src/cmd/boot/scripts/create_ramdisk.ksh index 1f6f4a4dfd..6301d107f4 100644 --- a/usr/src/cmd/boot/scripts/create_ramdisk.ksh +++ b/usr/src/cmd/boot/scripts/create_ramdisk.ksh @@ -362,9 +362,7 @@ function create_ufs_archive function cpio_cleanup { - [ -f "/$ALT_ROOT/$tarchive" ] && rm -f "/$ALT_ROOT/$tarchive" - [ -f "/$ALT_ROOT/$tarchive.cpio" ] && rm -f "/$ALT_ROOT/$tarchive.cpio" - [ -f "/$ALT_ROOT/$tarchive.hash" ] && rm -f "/$ALT_ROOT/$tarchive.hash" + rm -f "$tarchive" "$tarchive.cpio" "$tarchive.hash" } function create_cpio_archive -- cgit v1.2.3