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 ..."