You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: opensaas-sh/tools/dope.sh
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,19 @@
5
5
# Allows you to easily create a diff between the two projects (base and derived), or to patch those diffs onto the base project to get the derived one.
6
6
# Useful when derived project has only small changes on top of base project and you want to keep it in a dir in the same repo as main project.
7
7
8
+
# Determine the patch command to use based on OS
9
+
PATCH_CMD="patch"
10
+
if [[ "$(uname)"=="Darwin" ]];then
11
+
# On macOS, require gpatch to be installed
12
+
ifcommand -v gpatch &> /dev/null;then
13
+
PATCH_CMD="gpatch"
14
+
else
15
+
echo"Error: GNU patch (gpatch) not found. On MacOS, this script requires GNU patch."
16
+
echo"Install it with: brew install gpatch"
17
+
exit 1
18
+
fi
19
+
fi
20
+
8
21
# List all the source files in the specified dir.
9
22
# "Source" files are any files that are not gitignored.
0 commit comments