dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit 4e44b4a9f746d4a06d7e9001a035dda4e5c42fcb
parent a24d8c550b9b118f83dd15e95a057a08867c8107
Author: Duncaen <mail@duncano.de>
Date:   Fri, 19 May 2017 19:34:06 +0200

install: remove -v from ln and mkdir, they are not portable

Diffstat:
install-root.sh | 2+-
install.sh | 8++++----
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/install-root.sh b/install-root.sh @@ -1,3 +1,3 @@ #!/bin/sh -ln -sfv "${PWD}/sv/runsvdir-duncan" /etc/sv +ln -sf "${PWD}/sv/runsvdir-duncan" /etc/sv diff --git a/install.sh b/install.sh @@ -5,11 +5,11 @@ msg() { t=$1; shift; printf '%s: %s\n' "$t" "$@"; } _ln_home() { [ -z "$2" ] && tgt="$HOME/$1" || tgt="$HOME/$2" src="$PWD/$1" - [ -e "$tgt" ] && mv -v "$tgt" "$tgt.bak" - ln -sfv "$src" "$tgt" + [ -e "$tgt" ] && mv "$tgt" "$tgt.bak" + ln -sf "$src" "$tgt" } _mkdir() { - mkdir -vp $@ + mkdir -p $@ } _vim() { @@ -51,7 +51,7 @@ _void() { } _ssh() { msg "INSTALL" "ssh config" - mkdir -pv "$HOME/.ssh" + mkdir -p "$HOME/.ssh" _ln_home "ssh/config" ".ssh/config" } _bin() {