diff options
| author | Markus Reiter | 2017-07-30 18:44:53 +0200 |
|---|---|---|
| committer | Markus Reiter | 2017-07-30 18:44:53 +0200 |
| commit | 8779784d7092b6f1175eaf8c780c4d3cc88b4b16 (patch) | |
| tree | 3a41ec7c4723faeb6f418e4dc6d324b8f6235eea /Library | |
| parent | 896f41f7edb2f55f79fd3b8e6ffc8f3f1497727b (diff) | |
| download | brew-8779784d7092b6f1175eaf8c780c4d3cc88b4b16.tar.bz2 | |
Fix trash script.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb b/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb index 695b5a950..d92644150 100644 --- a/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb +++ b/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb @@ -247,8 +247,11 @@ module Hbc set output to "" repeat with i from 1 to (count trashedItems) - set item i of trashedItems to POSIX path of (item i of trashedItems as string) - set output to output & (item i of trashedItems) & (do shell script "printf \"\\0\"") + set trashedItem to POSIX path of (item i of trashedItems as string) + set output to output & trashedItem + if i < count trashedItems then + set output to output & (do shell script "printf \"\\0\"") + end if end repeat return output |
