aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-05-19 19:34:06 +0200
committerDuncaen <mail@duncano.de>2017-05-19 19:36:04 +0200
commit4e44b4a9f746d4a06d7e9001a035dda4e5c42fcb (patch)
tree2d8490d056fb3f25fc2c1ccd27a939128d9b3523 /install.sh
parenta24d8c550b9b118f83dd15e95a057a08867c8107 (diff)
downloaddotfiles-4e44b4a9f746d4a06d7e9001a035dda4e5c42fcb.tar.gz
install: remove -v from ln and mkdir, they are not portable
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/install.sh b/install.sh
index 7cecb56..13090d7 100755
--- 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() {