mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
add a directory indicator to suggested files
This commit is contained in:
parent
48023d9b7b
commit
62555ae5a1
1 changed files with 4 additions and 2 deletions
6
install
6
install
|
@ -99,11 +99,13 @@ find_new_files() {
|
|||
if [ -d "$d2" ]; then
|
||||
find_new_files "$d1" "$d2"
|
||||
elif [ ! "$d1" -ef "$d2" ]; then
|
||||
local ind=
|
||||
[ ! -d "$d1" ] || ind=/
|
||||
if [ "$VERBOSE" -lt 1 ]; then
|
||||
printf ' + %s\n' "$d1" >&2
|
||||
printf ' + %s%s\n' "$d1" "$ind" >&2
|
||||
else
|
||||
#printf 'new destination file. consider manually moving it:\n' >&2
|
||||
printf '\033[32m + \033[0m %s\n' "$d1" >&2
|
||||
printf '\033[32m + \033[0m %s%s\n' "$d1" "$ind" >&2
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Add table
Reference in a new issue