aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-20 17:15:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-20 17:15:42 +1200
commit48db433b1dfb676a7822bc2db333cc3eb7ddb013 (patch)
tree0eca24326051f3fdd14c0674b1169a3cfbceb474
parentWrapper for pushd defaults to $HOME if no args (diff)
downloaddotfiles-48db433b1dfb676a7822bc2db333cc3eb7ddb013.tar.gz
dotfiles-48db433b1dfb676a7822bc2db333cc3eb7ddb013.zip
Remove unneeded quoting in case statement
Wordsplitting is not done for case <WORD>: <http://wiki.bash-hackers.org/syntax/ccmd/case>
-rw-r--r--bash/bashrc.d/prompt.bash2
-rwxr-xr-xinstall2
2 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index 74eae891..b843beb3 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -6,7 +6,7 @@ prompt() {
local color reset branch state info url root
# What's done next depends on the first argument to the function
- case "$1" in
+ case $1 in
# Turn complex, colored prompt on
on)
diff --git a/install b/install
index a34d5e36..389531ff 100755
--- a/install
+++ b/install
@@ -33,7 +33,7 @@ ln -insv -- "$dotfiles/vim" "$HOME/.vim"
# Link in shell stuff
while getopts :gmntx opt; do
- case "$opt" in
+ case $opt in
g)
mkdir -pv -- "$HOME/.gnupg"
ln -insv -- "$dotfiles/gnupg/gpg.conf" "$HOME/.gnupg"