From 8fb4d01c6e5683349ec07b108b1384f31f58b09c Mon Sep 17 00:00:00 2001 From: framps Date: Wed, 24 Jul 2024 23:24:43 +0200 Subject: [PATCH] Fixed a minor issute in the installer cleanup process --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index d41228f..1690170 100755 --- a/install +++ b/install @@ -25,9 +25,9 @@ readonly FILES_2_DOWNLOAD"=rpi-clone rpi-clone-setup" readonly TMP_DIR=$(mktemp -d) readonly INSTALLATION_DIR="/usr/local/sbin" -trap "{ rmdir $TMP_DIR &>/dev/null; }" SIGINT SIGTERM EXIT pwd=$PWD +trap "{ cd $pwd; rmdir $TMP_DIR &>/dev/null; }" SIGINT SIGTERM EXIT cd $TMP_DIR echo "Installing $PACKAGE ..."