]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/script/check_commands.sh: fix grep regex class range 29161/head
authorValentin Bajrami <valentin.bajrami@target-holding.nl>
Tue, 30 Jul 2019 09:14:09 +0000 (11:14 +0200)
committerValentin Bajrami <valentin.bajrami@target-holding.nl>
Tue, 30 Jul 2019 09:14:20 +0000 (11:14 +0200)
Correct the faulty regex class.

Signed-off-by: Valentin Bajrami <valentin.bajrami@gmail.com>
src/script/check_commands.sh

index 17a15b405e9e84d4c702fb604136eb297184bd29..589c3d6a6ff030b01697c91ffb72bc1c97de8ab7 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
-git grep COMMAND\( | grep -o "(\"[a-zA-z ]*\"" | grep -o "[a-zA-z ]*" > commands.txt
+
+git grep -e COMMAND\( -e COMMAND_WITH_FLAG\( | grep -o "(\"[a-zA-Z ]*\"" | grep -o "[a-zA-Z ]*" | sort | uniq > commands.txt
 missing_test=false
 good_tests=""
 bad_tests=""