File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,18 @@ if sh -c ": >/dev/tty" >/dev/null 2>/dev/null; then
4
4
exec < /dev/tty
5
5
fi
6
6
7
+ # Get list of stashed PHP files
8
+ stashed_files=$( git diff --cached --name-only --diff-filter=ACM -- ' *.php' )
9
+
10
+ # If there are no stashed PHP files, exit early
11
+ if [ -z " $stashed_files " ]; then
12
+ exit 0
13
+ fi
14
+
15
+ # Set files variable to only include stashed PHP files
16
+ files=" $stashed_files "
17
+
7
18
$( pwd) /vendor/bin/pint $files -q
8
- git add .
19
+ if [ $? -eq 0 ]; then
20
+ git add $files
21
+ fi
Original file line number Diff line number Diff line change 1
1
{
2
2
"coolify" : {
3
3
"v4" : {
4
- "version" : " 4.0.0-beta.339 "
4
+ "version" : " 4.0.0-beta.341 "
5
5
},
6
6
"nightly" : {
7
- "version" : " 4.0.0-beta.340 "
7
+ "version" : " 4.0.0-beta.342 "
8
8
},
9
9
"helper" : {
10
10
"version" : " 1.0.1"
13
13
"version" : " 1.0.1"
14
14
}
15
15
}
16
- }
16
+ }
You can’t perform that action at this time.
0 commit comments