summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Fiddaman <omnios@citrus-it.co.uk>2018-10-01 14:06:43 +0000
committerDan McDonald <danmcd@joyent.com>2018-10-07 15:35:23 -0400
commit2119ebe49a3e2372de7791dce841058bdcb55de3 (patch)
tree0868bca16449976fb5d986fcd967c06fa24446e4
parent8522c52a00ba4f8cc5ba2e372ae5b66fd0bb7c26 (diff)
downloadillumos-joyent-2119ebe49a3e2372de7791dce841058bdcb55de3.tar.gz
9860 cpio_cleanup: $tarchive is already fully-qualified
Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Approved by: Robert Mustacchi <rm@joyent.com>
-rw-r--r--usr/src/cmd/boot/scripts/create_ramdisk.ksh4
1 files changed, 1 insertions, 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