From 8d04b38d0b5a76bc1ac1608e017820e6a4ceba49 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 21 Dec 2010 07:21:34 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixes=20issue=20while=20updating=20a=20Bund?= =?UTF-8?q?le=20-=20move=20the=20folder=20to=20Trash=20not=20only=20the=20?= =?UTF-8?q?command.plist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPAppController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPAppController.m') diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 63be06c0..e216e9ba 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -550,7 +550,7 @@ NSInteger answer = [alert runModal]; if(answer == NSAlertDefaultReturn) { NSError *error = nil; - NSString *moveToTrashCommand = [NSString stringWithFormat:@"osascript -e 'tell application \"Finder\" to move (POSIX file \"%@\") to the trash'", infoPath]; + NSString *moveToTrashCommand = [NSString stringWithFormat:@"osascript -e 'tell application \"Finder\" to move (POSIX file \"%@\") to the trash'", newPath]; [moveToTrashCommand runBashCommandWithEnvironment:nil atCurrentDirectoryPath:nil error:&error]; if(error != nil) { NSAlert *alert = [NSAlert alertWithMessageText:[NSString stringWithFormat:NSLocalizedString(@"Error while moving “%@” to Trash.", @"error while moving “%@” to trash"), [[installedBundleUUIDs objectForKey:[cmdData objectForKey:SPBundleFileUUIDKey]] objectForKey:@"path"]] -- cgit v1.2.3