mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-08-02 23:12:51 +02:00
20 lines
348 B
Bash
Executable file
20 lines
348 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Copyright The OpenTelemetry Authors
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
set -e
|
|
|
|
if [ "format" = "$1" ]; then
|
|
if [ -z "$2" ]; then
|
|
echo Please specify file name.
|
|
exit
|
|
fi
|
|
|
|
if [ -f "$2" ]; then
|
|
FILEPATH=$2
|
|
else
|
|
FILEPATH=${GIT_PREFIX}$2
|
|
fi
|
|
echo Formatting $FILEPATH
|
|
clang-format -style=file -i $FILEPATH
|
|
fi
|