Skip to content

Commit 5ecaa7a

Browse files
authored
Merge pull request #36 from framps/master
Fixed a minor issue in the installer cleanup process
2 parents cebc9d9 + 8fb4d01 commit 5ecaa7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ readonly FILES_2_DOWNLOAD"=rpi-clone rpi-clone-setup"
2525
readonly TMP_DIR=$(mktemp -d)
2626
readonly INSTALLATION_DIR="/usr/local/sbin"
2727

28-
trap "{ rmdir $TMP_DIR &>/dev/null; }" SIGINT SIGTERM EXIT
2928

3029
pwd=$PWD
30+
trap "{ cd $pwd; rmdir $TMP_DIR &>/dev/null; }" SIGINT SIGTERM EXIT
3131
cd $TMP_DIR
3232

3333
echo "Installing $PACKAGE ..."

0 commit comments

Comments
 (0)