Skip to content
Merged
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ iex ((New-Object Net.WebClient).DownloadString('https://github.com/thefuture-ind
Go to the root of the project and run the command.

```bash
curl -fsSL https://github.com/thefuture-industries/git-auto-commit/blob/main/scripts/install-linux-auto-commit.sh?raw=true | bash
echo Y | bash <(curl -fsSL https://github.com/thefuture-industries/git-auto-commit/blob/main/scripts/install-linux-auto-commit.sh?raw=true)
```

## Setting up
Expand Down
3 changes: 2 additions & 1 deletion issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ var bufferPool = sync.Pool{
}

func ExtractIssueNumber(branch string) string {
re := regexp.MustCompile(`(\\d+)`)
re := regexp.MustCompile(`\d+`)
match := re.FindStringSubmatch(branch)
if len(match) > 1 {
fmt.Println(match[1])
return match[1]
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/install-linux-auto-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if [[ "$answer" == "Y" || "$answer" == "y" ]]; then
chmod +x "$HOOK_PATH"
echo -e "\e[33mFile saved as $HOOK_PATH\e[0m"

git config --local alias.auto '!./.git/hooks/auto-commit'
git config --local alias.auto '!bash -c ./.git/hooks/auto-commit'

echo "$TAG" > "$VERSION_FILE"

Expand Down
2 changes: 1 addition & 1 deletion scripts/update-linux-auto-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ chmod +x "$HOOK_PATH"

echo "$TAG" > "$VERSION_FILE"

git config --local alias.auto '!./.git/hooks/auto-commit'
git config --local alias.auto '!bash -c ./.git/hooks/auto-commit'
echo "successful upgrade to version $TAG"
2 changes: 1 addition & 1 deletion scripts/update-windows-auto-commit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ Set-Content -Path $versionFile -Value $tag
git config --local alias.auto '!./.git/hooks/auto-commit'

Write-Host "successful upgrade to version $tag"
exit 0
[Environment]::Exit(0)