Skip to content

Commit 4d751a5

Browse files
author
Hugo Rialan
committed
fix
1 parent b29ca12 commit 4d751a5

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

hooks/dataform_format.sh

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
11
#!/bin/sh
22

3-
# Check if dataform command is available
4-
if ! command -v dataform >/dev/null 2>&1; then
5-
echo "Error: dataform command not found. Make sure it is installed and available in PATH."
6-
exit 1
7-
fi
8-
9-
# Run Dataform formatting
10-
output=$(dataform format 2>&1)
11-
exit_code=$?
12-
13-
if [ $exit_code -ne 0 ]; then
14-
echo "Dataform formatting failed:"
15-
echo "$output"
16-
echo "Please review the formatting errors before committing."
17-
exit 1
18-
fi
19-
20-
echo "Dataform formatting complete. Please review the changes before committing."
3+
dataform format

0 commit comments

Comments
 (0)