summaryrefslogtreecommitdiff
path: root/bin/mkrc
diff options
context:
space:
mode:
authorGravatar The Linux Kitten <kitten@openbsdbox>2014-03-09 21:22:02 +0100
committerGravatar Mike Burns <mike@mike-burns.com>2014-03-19 13:24:00 +0100
commit85e16216d4f95a3986ce18d3e5a4a5ed431a4ad5 (patch)
treeb6589a397729daaeeb7be4c1dbc347ccf18d384d /bin/mkrc
parent937e565856a05a32060a43d2ee695443cf6c6af1 (diff)
Add support for -v option on OpenBSD
The `-v` (verbose) flag for `cp`, `ln`, and `rm` is not standard. It is simple to implement using shell functions, so introduce `cp_v`, `ln_v`, and `rm_v`. These shell functions use the existing `$VERBOSE` variable for printing, which simplifies the code and reduces the number of variables. Fixes #61.
Diffstat (limited to 'bin/mkrc')
-rwxr-xr-xbin/mkrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mkrc b/bin/mkrc
index d99cf36..3d9b749 100755
--- a/bin/mkrc
+++ b/bin/mkrc
@@ -82,7 +82,7 @@ for file in $files; do
dest="$(destination "$DOTFILES_DIR" "$dotless" $in_host "$tag")"
mkdir -p "$dest/$(dirname "$dotless")"
$PRINT "Moving..."
- $MV "$file" "$dest/$dotless"
+ mv_v "$file" "$dest/$dotless"
$PRINT "Linking..."
$INSTALL -d "$DOTFILES_DIR" -t "${tag:--}" "$dotless"
done