fix: makes pre-commit action use sh instead of zsh
This commit is contained in:
parent
7618ee2520
commit
cc6cc59443
@ -1,6 +1,4 @@
|
|||||||
#!/usr/bin/env zsh
|
#!/bin/sh
|
||||||
|
|
||||||
source $HOME/dotfiles/bin/helpers/functions.sh
|
|
||||||
|
|
||||||
# Check for unencrypted files in .ssh/config.d/
|
# Check for unencrypted files in .ssh/config.d/
|
||||||
unencrypted_files=$(find config/ssh/config.d/ -type f ! -name "*.gpg")
|
unencrypted_files=$(find config/ssh/config.d/ -type f ! -name "*.gpg")
|
||||||
@ -17,8 +15,8 @@ if [ -n "$unencrypted_files" ]; then
|
|||||||
# If any unencrypted files are staged, exit with a non-zero status
|
# If any unencrypted files are staged, exit with a non-zero status
|
||||||
if [ -n "$unencrypted_staged_files" ]; then
|
if [ -n "$unencrypted_staged_files" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
printfe "%s\n" "red" "Error: Unencrypted files are staged for commit!"
|
echo "Error: Unencrypted files are staged for commit!"
|
||||||
printfe "%s\n" "blue" "Use 'dotf secrets encrypt' to encrypt them before committing."
|
echo "Use 'dotf secrets encrypt' to encrypt them before committing."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user