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"