commit 716831bed11ed3daf2d076a1b4dc02703a543425
parent 5eaa227ae13536ac5637bc0ea95bca0c5f5a1ac5
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Thu, 18 Feb 2021 15:22:09 -0800
Have sysconf call rm(1) and cp(1) with the verbosity flag
Diffstat:
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/local/scripts/.local/bin/sysconf b/local/scripts/.local/bin/sysconf
@@ -2,7 +2,7 @@
# Copyright 2021 Jacob R. Edwards
# License: GPLv3
#
-# sysconf -- install file from a file list
+# sysconf -- install file list
#
# sysconf preprocesses a list of source destination pairs (separated
# by whitespace) from the file `sysconf' with m4(1) and proceeds
@@ -27,14 +27,13 @@ check() {
install() {
while read line
do
- cp -r $line
+ cp -rv $line
done
}
-uninstall() rm -r `check $*`
+uninstall() rm -rv `check $*`
-process <sysconf | case $1
-in
+process <sysconf | case $1 in
(l|list)
list;;
(c|check)
@@ -45,5 +44,5 @@ in
uninstall;;
(*)
printf 'usage: %s [list|check|install|uninstall]\n' `basename $0` 1>&2
- exit 1;;
+ exit 1
esac