dot

packages and services management
Log | Files | Refs | README

commit 72e1e5e3591ba01d2cf83fdff81ec96b2e7b43f2
parent adad94f7914c7a353e53cd16ba78c6dcfbbef410
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed, 29 Nov 2017 10:33:27 +0100

fix non-existent file error message

Diffstat:
Mbin/etc | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/etc b/bin/etc @@ -32,11 +32,11 @@ case $1 in ;; (setup) mkdir -p "$HOME/.config" - [ -f "$ETC/cron/$2" ] && cat "$ETC/cron/$2" >> "$HOME/.config/cron" - [ -f "$ETC/inet/$2" ] && cat "$ETC/inet/$2" >> "$HOME/.config/inet" - [ -e "$ETC/skel/$2" ] && cp -r "$ETC/skel/$2/" "/etc/$2" + [ -f "$ETC/cron/$2" ] && cat "$ETC/cron/$2" >> "$HOME/.config/cron" && sort -uo "$HOME/.config/cron" "$HOME/.config/cron" + [ -f "$ETC/inet/$2" ] && cat "$ETC/inet/$2" >> "$HOME/.config/inet" && sort -uo "$HOME/.config/inet" "$HOME/.config/inet" + [ -e "$ETC/skel/$2" ] && cp -r "$ETC/skel/$2/" "/etc/$2" ;; (fonts) fc-cache "$ETC/fonts"