Skip to content

Commit

Permalink
Revert all changes unrelated to PR
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmades committed Jul 28, 2024
1 parent c16124e commit 390b7bb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/clang_format/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ function catch_error() {

function parse_arguments() {
while [[ $# -gt 0 ]]; do
key=$1
case ${key} in
case $1 in
--clang_format_file)
declare -g clang_format_file
clang_format_file=$(realpath "$2")
Expand All @@ -25,13 +24,13 @@ function parse_arguments() {
# Read all arguments following --directories into the array
#declare -A directories
directories=()
while [[ $# -gt 0 && ! "${key}" =~ ^-- ]]; do
directories+=("$(realpath "${key}")")
while [[ $# -gt 0 && ! "$1" =~ ^-- ]]; do
directories+=("$(realpath "$1")")
shift
done
;;
-* | *)
echo "Unknown argument: ${key}"
echo "Unknown parameter: $1"
exit 1
;;
esac
Expand Down

0 comments on commit 390b7bb

Please sign in to comment.