X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=fsck.btrfs;h=e1eff2ca4dcfadc029845ddf139c1de7360a1bf3;hb=c449c391f5ec88e903f7a6b82bb3fc55f261c35b;hp=e90043a5cd4563364f3df93f92bf98d77d995c23;hpb=b085b145b6a476b0f864d741bdf1196a39a87fc0;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/fsck.btrfs b/fsck.btrfs index e90043a..e1eff2c 100755 --- a/fsck.btrfs +++ b/fsck.btrfs @@ -26,14 +26,13 @@ do a|A|p|y) AUTO=true;; esac done +shift $(($OPTIND - 1)) eval DEV=\${$#} if [ ! -e $DEV ]; then echo "$0: $DEV does not exist" exit 8 fi -if $AUTO; then - echo "$0: BTRFS file system." -else +if ! $AUTO; then echo "If you wish to check the consistency of a BTRFS filesystem or" echo "repair a damaged filesystem, see btrfs(8) subcommand 'check'." fi