Skip to content

Commit e9b7132

Browse files
committed
- Change push command to only chmod new (untracked) files
1 parent 2695ca6 commit e9b7132

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rush

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# This script was generated by bashly 1.0.2 (https://bashly.dannyb.co)
2+
# This script was generated by bashly 1.0.4 (https://bashly.dannyb.co)
33
# Modifying it manually is not recommended
44

55
# :wrapper.bash3_bouncer
@@ -1463,7 +1463,7 @@ rush_push_command() {
14631463
set -e
14641464
cd "$repo_path"
14651465
git add . --all
1466-
find . -type f \( -name main -o -name undo \) -exec git update-index --chmod +x {} \;
1466+
git ls-files | grep -E "undo|main" | xargs -I {} git update-index --chmod +x {}
14671467
git commit -am "$message"
14681468
git push
14691469
)

src/push_command.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ push_repo() {
1313
set -e
1414
cd "$repo_path"
1515
git add . --all
16-
find . -type f \( -name main -o -name undo \) -exec git update-index --chmod +x {} \;
16+
git ls-files | grep -E "undo|main" | xargs -I {} git update-index --chmod +x {}
1717
git commit -am "$message"
1818
git push
1919
)

0 commit comments

Comments
 (0)