From 7ccaf2b1cd1a6631ea3432c6dec3f00a6f190d2f Mon Sep 17 00:00:00 2001 From: Luke Sampson Date: Thu, 15 Aug 2013 15:05:19 +1000 Subject: [PATCH] fix bug in install trying to write last_updated, remove shims one-by-one when uninstalling apps so they aren't left around to cause strange errors when another app dir can't be deleted later down the line --- bin/install.ps1 | 2 +- bin/uninstall.ps1 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/install.ps1 b/bin/install.ps1 index 838bccb8a..1b5525520 100644 --- a/bin/install.ps1 +++ b/bin/install.ps1 @@ -27,7 +27,7 @@ dl $zipurl $zipfile unzip $zipfile $dir 'scoop-master' rm $zipfile -$null > "$currentdir\last_updated" # save install timestamp +$null > "$dir\last_updated" # save install timestamp echo 'creating shim...' shim "$dir\bin\scoop.ps1" diff --git a/bin/uninstall.ps1 b/bin/uninstall.ps1 index d6ba8ab8c..6dfed6e2c 100644 --- a/bin/uninstall.ps1 +++ b/bin/uninstall.ps1 @@ -20,6 +20,7 @@ installed_apps | % { echo "uninstalling $app" run_uninstaller $manifest $architecture $dir + rm_shims $manifest rm_env_path $manifest $dir rm_env $manifest