generated from jobindjohn/obsidian-publish-mkdocs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Affected files: mkdocs-obsidian-template/.obsidian/plugins/obsidian-git/main.js mkdocs-obsidian-template/.obsidian/plugins/obsidian-git/manifest.json mkdocs-obsidian-template/.obsidian/plugins/obsidian-git/obsidian_askpass.sh mkdocs-obsidian-template/.obsidian/workspace.json
- Loading branch information
1 parent
e0e6183
commit 1dadcb6
Showing
4 changed files
with
225 additions
and
163 deletions.
There are no files selected for viewing
347 changes: 185 additions & 162 deletions
347
mkdocs-obsidian-template/.obsidian/plugins/obsidian-git/main.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
mkdocs-obsidian-template/.obsidian/plugins/obsidian-git/obsidian_askpass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
|
||
PROMPT="$1" | ||
TEMP_FILE="$OBSIDIAN_GIT_CREDENTIALS_INPUT" | ||
|
||
cleanup() { | ||
rm -f "$TEMP_FILE" "$TEMP_FILE.response" | ||
} | ||
trap cleanup EXIT | ||
|
||
echo "$PROMPT" > "$TEMP_FILE" | ||
|
||
while [ ! -e "$TEMP_FILE.response" ]; do | ||
if [ ! -e "$TEMP_FILE" ]; then | ||
echo "Trigger file got removed: Abort" >&2 | ||
exit 1 | ||
fi | ||
sleep 0.1 | ||
done | ||
|
||
RESPONSE=$(cat "$TEMP_FILE.response") | ||
|
||
echo "$RESPONSE" |
Large diffs are not rendered by default.
Oops, something went wrong.