From: Simon Ruderich Date: Mon, 18 Nov 2013 12:36:07 +0000 (+0100) Subject: Minor cleanup. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=b1c443c9ab5b960e08e079863d4c679f226871b6;p=config%2Fdotfiles.git Minor cleanup. --- diff --git a/archive.sh b/archive.sh index 1cfaf93..5f8a0d2 100755 --- a/archive.sh +++ b/archive.sh @@ -31,7 +31,7 @@ git_clone() { # Don't overwrite an existing file/directory. if test -e tmp; then - echo "tmp/ already exists!" + echo 'tmp/ already exists!' exit 1 fi diff --git a/lib.sh b/lib.sh index c55cb0a..ba4e658 100644 --- a/lib.sh +++ b/lib.sh @@ -53,7 +53,7 @@ installed_path() { # Usage: cmd_i ... # # Run with all arguments (including the last file) and write the result -# to the temporary file .tmp and then renamed that file to . This +# to the temporary file .tmp and then rename that file to . This # can't be done in-place (e.g. cmd file) because it truncates the file. cmd_i() { # Get last argument. @@ -128,7 +128,7 @@ os() { elif test x`uname` = xFreeBSD; then echo freebsd else - echo unsupported OS! >&2 + echo 'unsupported OS!' >&2 return 1 fi } @@ -149,7 +149,7 @@ link() { target=`basename "$2"` # Go to the directory where the link is going to be created. - cd "$base" + cd "$base" || return 1 # Abort if the target file exists and is no symbolic link. Prevents # overwriting real files. @@ -178,7 +178,7 @@ link() { # Generate a file from a source file using a given command. A warning not to # edit it is automatically added to the created file. # -# Usage: generated() +# Usage: generate # # If an empty extension is provided, the file is modified in-place (through a # temporary file).