aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-27 00:25:18 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-27 00:25:18 +1200
commitfdb20f450e8ea7f9b1d64c92750126db63bf1b51 (patch)
tree06085668593cad50746eabfc675eb7ea03cbed45 /sh
parentAdd `lithist` to shell options (diff)
downloaddotfiles-fdb20f450e8ea7f9b1d64c92750126db63bf1b51.tar.gz
dotfiles-fdb20f450e8ea7f9b1d64c92750126db63bf1b51.zip
Fix some comments in options.sh
Diffstat (limited to 'sh')
-rw-r--r--sh/profile.d/options.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/profile.d/options.sh b/sh/profile.d/options.sh
index 74aa7cd9..b4000e5d 100644
--- a/sh/profile.d/options.sh
+++ b/sh/profile.d/options.sh
@@ -9,11 +9,11 @@ options() (
# Directory already exists; bail out
[ -d "$dir" ] && exit
- # Create the directory
+ # Create the directory and step into it
mkdir -p -- "$dir" || exit
cd -- "$dir" || exit
- # Write grep(1)'s --help output to a file, even if it's empty
+ # Write the program's --help output to a file, even if it's empty
"$1" --help </dev/null >help 2>/dev/null || exit
# Shift the program name off; remaining arguments are the options to check