fix: drop unnecessary wrappers, fix shebangs

Also make the hook installation run by default.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-11-07 17:56:25 +01:00
parent b15fa6d2c8
commit 5aa9eb913d
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
5 changed files with 8 additions and 10 deletions

View File

@ -405,8 +405,10 @@ migration-wallet:
touch $(DEFAULT_WALLET_MIGRATION_PATH)/$(shell date +%s)_$(D).up.sql
install-git-hooks:
@ln -s -f $(shell pwd)/_assets/hooks/pre-rebase .git/hooks
@ln -s -f $(shell pwd)/_assets/hooks/pre-merge-commit .git/hooks
@ln -srf $(shell pwd)/_assets/hooks/* .git/hooks
-include install-git-hooks
.PHONY: install-git-hooks
migration-protocol: DEFAULT_PROTOCOL_PATH := protocol/migrations/sqlite
migration-protocol:

View File

@ -1,3 +0,0 @@
#!/bin/bash
make migration-check

View File

@ -0,0 +1 @@
../scripts/migration_check.sh

View File

@ -1,3 +0,0 @@
#!/bin/bash
make migration-check

1
_assets/hooks/pre-rebase Symbolic link
View File

@ -0,0 +1 @@
../scripts/migration_check.sh

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
json_path='.ClusterConfig.TrustedMailServers'
mailservers=$(jq -r "${json_path} | .[]" $1)

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
set -o pipefail