Skip to content

Commit 2853dbd

Browse files
create new release v2.11.x, added install and update auto-commit for linux (#50)
* the 'update-windows-auto-commit.ps1' file has been changed * changed value in variable re * changed the 'fix-exit-42' branch * changed the 'fix-exit-42' branch * changed the 'fix-exit-42' branch * changed the 'fix-exit-42' branch * changed the 'fix-exit-42' branch * changed the 'fix-exit-42' branch * the 'install-linux-auto-commit.sh' file has been changed | the 'README.md' file has been changed | the 'update-linux-auto-commit.sh' file has been changed
2 parents baa1178 + d9ce56e commit 2853dbd

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ iex ((New-Object Net.WebClient).DownloadString('https://github.com/thefuture-ind
2626
Go to the root of the project and run the command.
2727

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

3232
## Setting up

issues.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ var bufferPool = sync.Pool{
1919
}
2020

2121
func ExtractIssueNumber(branch string) string {
22-
re := regexp.MustCompile(`(\\d+)`)
22+
re := regexp.MustCompile(`\d+`)
2323
match := re.FindStringSubmatch(branch)
2424
if len(match) > 1 {
25+
fmt.Println(match[1])
2526
return match[1]
2627
}
2728

scripts/install-linux-auto-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if [[ "$answer" == "Y" || "$answer" == "y" ]]; then
4141
chmod +x "$HOOK_PATH"
4242
echo -e "\e[33mFile saved as $HOOK_PATH\e[0m"
4343

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

4646
echo "$TAG" > "$VERSION_FILE"
4747

scripts/update-linux-auto-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ chmod +x "$HOOK_PATH"
6161

6262
echo "$TAG" > "$VERSION_FILE"
6363

64-
git config --local alias.auto '!./.git/hooks/auto-commit'
64+
git config --local alias.auto '!bash -c ./.git/hooks/auto-commit'
6565
echo "successful upgrade to version $TAG"

scripts/update-windows-auto-commit.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ Set-Content -Path $versionFile -Value $tag
6767
git config --local alias.auto '!./.git/hooks/auto-commit'
6868

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

0 commit comments

Comments
 (0)