We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec3bbf9 commit b0f6be0Copy full SHA for b0f6be0
1 file changed
examples/Workspaces/eg002AddDocumentToWorkspace.sh
@@ -36,7 +36,13 @@ declare -a Headers=(
36
#ds-snippet-end:Workspaces2Step2
37
38
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
39
-DEMO_DOCS_PATH="$(cd "$SCRIPT_DIR/../../demo_documents" && pwd)"
+DEMO_DOCS_PATH_UNIX="$(cd "$SCRIPT_DIR/../../demo_documents" && pwd)"
40
+
41
+if command -v cygpath >/dev/null 2>&1; then
42
+ DEMO_DOCS_PATH="$(cygpath -w "$DEMO_DOCS_PATH_UNIX")"
43
+else
44
+ DEMO_DOCS_PATH="$DEMO_DOCS_PATH_UNIX"
45
+fi
46
47
# Upload the file path to be added to the workspace
48
#ds-snippet-start:Workspaces2Step3
0 commit comments