useless -n parameter
This commit is contained in:
parent
823a57149b
commit
0af41d160d
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Fetching last Obsidian version
|
# Fetching last Obsidian version
|
||||||
wget -q https://api.github.com/repos/obsidianmd/obsidian-releases/releases/latest
|
wget -q https://api.github.com/repos/obsidianmd/obsidian-releases/releases/latest
|
||||||
echo "Retrieve the last package..."
|
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
|
rm latest
|
||||||
# Downloading package
|
# Downloading package
|
||||||
wget -q --show-progress -i url -O obsidian.snap
|
wget -q --show-progress -i url -O obsidian.snap
|
||||||
|
|
Reference in a new issue