summary refs log tree commit diff
path: root/.ci
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2021-02-02 11:37:10 -0500
committerJoseph Donofry <joedonofry@gmail.com>2021-02-02 11:37:10 -0500
commit2bfd44755ea9c18ee9fc48e775b97f0363c9acd4 (patch)
tree04bc03bceab7907d0aceca35fa92986af10cffe0 /.ci
parentChange bash variable check (diff)
downloadnheko-2bfd44755ea9c18ee9fc48e775b97f0363c9acd4.tar.xz
Try to fix format script and fix linting
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/format.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/.ci/format.sh b/.ci/format.sh
index f2d01cec..31eba878 100755
--- a/.ci/format.sh
+++ b/.ci/format.sh
@@ -14,13 +14,13 @@ do
     clang-format -i "$f"
 done;
 
-QMLFORMAT_PATH=$(which qmlformat)
+QMLFORMAT_PATH=$(command -v qmlformat)
 if [ -n "$QMLFORMAT_PATH" ]; then
     QML_FILES=$(find resources -type f -iname "*.qml")
 
     for f in $QML_FILES
     do
-        qmlformat -i "$f"
+        $QMLFORMAT_PATH -i "$f"
     done;
 else
     echo "qmlformat not found; skipping qml formatting"