File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,10 @@ DOCS_DIR=
4444TMPMOUNT=/tmp/zealtmp
4545
4646print_usage () {
47- echo " Usage: $0 ( repo | vm ) [OPTION]"
47+ echo " Usage: $0 ( repo | vm | diff ) [OPTION]"
4848 echo " repo Overwrites src/ with virtual disk contents."
4949 echo " vm Overwrites virtual disk with src/ contents."
50+ echo " diff Runs a 'diff' between src/ and virtual disk."
5051 echo " Options:"
5152 echo " --ignore-dots Ignore dotfiles/dotfolders during synchronize."
5253}
7374 sudo modprobe nbd
7475 [ ! -d $TMPMOUNT ] && mkdir $TMPMOUNT
7576 case $1 in
77+ diff)
78+ mount_vdisk
79+ diff -x * .MAP --color=always -r ../src/ $TMPMOUNT / | less -R -p " diff -x.*|Only in.*"
80+ umount_vdisk
81+ echo " Finished."
82+ ;;
7683 repo)
7784 echo " Emptying src..."
7885 rm -rf ../src/*
You can’t perform that action at this time.
0 commit comments