Skip to content

Commit 3023b15

Browse files
authored
Update nix-setup-template.sh
1 parent f9f0c63 commit 3023b15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

installers/nix-setup-template.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ echo "Check if Python hostedtoolcache folder exist..."
2424
if [ ! -d $PYTHON_TOOLCACHE_PATH ]; then
2525
echo "Creating Python hostedtoolcache folder..."
2626
mkdir -p $PYTHON_TOOLCACHE_PATH
27-
elif [ -d $PYTHON_TOOLCACHE_VERSION_PATH ]; then
28-
echo "Deleting Python $PYTHON_FULL_VERSION"
29-
rm -rf $PYTHON_TOOLCACHE_VERSION_PATH
27+
elif [ -d $PYTHON_TOOLCACHE_VERSION_ARCH_PATH ]; then
28+
echo "Deleting Python $PYTHON_FULL_VERSION ($ARCH)"
29+
rm -rf $PYTHON_TOOLCACHE_VERSION_ARCH_PATH
3030
fi
3131

3232
echo "Create Python $PYTHON_FULL_VERSION folder"

0 commit comments

Comments
 (0)