diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blog/2015-02-10-monitor-progress-of-your-unix-pipes-with-pv.md | 2 | ||||
-rw-r--r-- | source/blog/2015-03-22-back-up-os-x-app-icons.md | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blog/2015-02-10-monitor-progress-of-your-unix-pipes-with-pv.md b/source/blog/2015-02-10-monitor-progress-of-your-unix-pipes-with-pv.md index 8965beb6..5191a2ba 100644 --- a/source/blog/2015-02-10-monitor-progress-of-your-unix-pipes-with-pv.md +++ b/source/blog/2015-02-10-monitor-progress-of-your-unix-pipes-with-pv.md @@ -39,7 +39,7 @@ def rename(items) else STDERR.puts("#{path}: directory ignored") end - + num_done += 1 } end diff --git a/source/blog/2015-03-22-back-up-os-x-app-icons.md b/source/blog/2015-03-22-back-up-os-x-app-icons.md index 94ba6a64..712fbfe1 100644 --- a/source/blog/2015-03-22-back-up-os-x-app-icons.md +++ b/source/blog/2015-03-22-back-up-os-x-app-icons.md @@ -14,7 +14,7 @@ function app_version # $1 is the path to the app /usr/libexec/PlistBuddy -c "print CFBundleShortVersionString" "$1"/Contents/Info.plist 2>/dev/null || date +%Y%m%d } - + function app_icon_path { # $1 is the path to the app @@ -23,7 +23,7 @@ function app_icon_path filename=$(basename "${filename}" .icns) echo "$1/Contents/Resources/${filename}.icns" } - + function process_app { # $1 is the path to the app @@ -36,7 +36,7 @@ function process_app cp "${icon_path}" "${name}-${version}.icns" echo "${name}-${version}.icns" } - + find /Applications -maxdepth 2 -name '*.app' | while read app; do process_app "${app}"; done find /System/Library/CoreServices -maxdepth 1 -name '*.app' | while read app; do process_app "${app}"; done ``` |