diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2015-06-10 00:24:05 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2015-06-10 00:24:05 -0700 |
commit | dc0ed1fc9b58427fc4f8be7730e1923d493397e8 (patch) | |
tree | c70e8fe9137aaa3ee1048e62edde895be569ad41 | |
parent | 247b2dffdf54d6571341c44d38323271d5e69839 (diff) | |
download | my_new_personal_website-dc0ed1fc9b58427fc4f8be7730e1923d493397e8.tar.xz my_new_personal_website-dc0ed1fc9b58427fc4f8be7730e1923d493397e8.zip |
remove trailing whitespace from old posts
Diffstat (limited to '')
-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 ``` |