summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/lsrc.in4
-rwxr-xr-xbin/rcup.in4
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/lsrc.in b/bin/lsrc.in
index 47ae889..fcf5fbe 100755
--- a/bin/lsrc.in
+++ b/bin/lsrc.in
@@ -118,7 +118,7 @@ show_file() {
output="$output:$sigil"
fi
- if echo "$DEST_STACK:" | grep -vq ":$dest_file:"; then
+ if echo "$DEST_STACK:" | grep -v ":$dest_file:" >/dev/null; then
DEST_STACK="$DEST_STACK:$dest_file"
$PRINT "$output"
else
@@ -167,7 +167,7 @@ dotfiles_dir_excludes() {
$DEBUG " with excludes: $excludes"
for exclude in $excludes; do
- if echo "$exclude" | grep -q ':'; then
+ if echo "$exclude" | grep ':' >/dev/null; then
dotfiles_dir_pat="$(echo "$exclude" | sed 's/:.*//')"
file_glob="$(echo "$exclude" | sed 's/.*://')"
diff --git a/bin/rcup.in b/bin/rcup.in
index f818258..bdae664 100755
--- a/bin/rcup.in
+++ b/bin/rcup.in
@@ -123,11 +123,11 @@ replace_file() {
}
is_nested() {
- echo "$1" | sed "s:$DEST_DIR/::" | grep -q '/'
+ echo "$1" | sed "s:$DEST_DIR/::" | grep '/' >/dev/null
}
is_identical() {
- diff -q -s "$1" "$2" > /dev/null
+ diff -c "$1" "$2" > /dev/null 2>&1
}
handle_dir() {