From c14fa6f17789e17e39d265e65b56304eaefe0d6a Mon Sep 17 00:00:00 2001 From: araison Date: Sun, 28 Jan 2024 12:23:31 +0100 Subject: [PATCH] Adding obsidian.sh --- setup/programs/package_manager/apt/others/obsidian.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/programs/package_manager/apt/others/obsidian.sh b/setup/programs/package_manager/apt/others/obsidian.sh index 8a875d7..7a4c285 100644 --- a/setup/programs/package_manager/apt/others/obsidian.sh +++ b/setup/programs/package_manager/apt/others/obsidian.sh @@ -1 +1,3 @@ -https://github.com/obsidianmd/obsidian-releases/releases +url=$(wget -q -O - https://api.github.com/repos/obsidianmd/obsidian-releases/releases/latest | grep 'deb"$' | awk -F'"' ' {print $4} ') +wget -O "obsidian.deb" "$url" +sudo dpkg -i "obsidian.deb"