From 0af41d160df0c44262f0276fe7b09c8870b3fd2a Mon Sep 17 00:00:00 2001 From: Anri Date: Sun, 14 Nov 2021 16:15:06 +0100 Subject: [PATCH] useless -n parameter --- installObsidian.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installObsidian.sh b/installObsidian.sh index 7b4b5ef..dfbe452 100644 --- a/installObsidian.sh +++ b/installObsidian.sh @@ -1,7 +1,7 @@ # Fetching last Obsidian version wget -q https://api.github.com/repos/obsidianmd/obsidian-releases/releases/latest echo "Retrieve the last package..." -grep -n 'browser_download_url": ".*.snap"' latest | awk '{ print substr ($0, 36 ) }' | awk '{ print substr( $0, 1, length($0)-1 ) }' > url +grep 'browser_download_url": ".*.snap"' latest | awk '{ print substr ($0, 32 ) }' | awk '{ print substr( $0, 1, length($0)-1 ) }' > url rm latest # Downloading package wget -q --show-progress -i url -O obsidian.snap