Skip to content

Commit

Permalink
make function declaration in bash functions consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
Okeanos committed Oct 21, 2024
1 parent 1a7a9a7 commit 43307d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stow/shell/.config/bash/functions
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function tre() {
# `git-sync` is a wrapper function around `find`, `xargs` that will
# asynchrounously call git pull --rebase --autostash on any repository one level
# down from the specified path.
function git-sync {
function git-sync() {
local path="."
if [[ $# -ne 0 ]]; then
path="${1}"
Expand All @@ -172,7 +172,7 @@ function git-sync {
# `git-fetch` is a wrapper function around `find`, `xargs` that will
# asynchrounously call --all --prune --prune-tags --quiet on any repository one level
# down from the specified path.
function git-fetch {
function git-fetch() {
local path="."
if [[ $# -ne 0 ]]; then
path="${1}"
Expand All @@ -184,7 +184,7 @@ function git-fetch {
# `handle-secrets` is a wrapper function around `gitleaks` and allows you to
# interactively go through any finding gitleaks detects in the supplied folder
# and put them into a `.gitleaksignore` file with appropriate comments
function handle-secrets {
function handle-secrets() {
local target_directory report_directory report_file git_name git_email git_user ignore_file_contents current_time description rule file fingerprint commit secret comment documented_as

target_directory=$(realpath --canonicalize-missing "${1}")
Expand Down

0 comments on commit 43307d3

Please sign in to comment.