Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions utils/exfatprogs/test-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

# fsck.exfat and mkfs.exfat print the version but exit non-zero when called
# with -V (FSCK_EXIT_SYNTAX_ERROR / EXIT_FAILURE), so the generic per-file
# version check skips their output. Check the version here instead.
case "$1" in
exfat-fsck)
fsck.exfat -V 2>&1 | grep -qF "$2"
;;
exfat-mkfs)
mkfs.exfat -V 2>&1 | grep -qF "$2"
;;
*)
exit 0
;;
esac
Loading