Skip to content

Commit

Permalink
Made instructions more compact.
Browse files Browse the repository at this point in the history
  • Loading branch information
odkr committed Jan 18, 2020
1 parent 01d3376 commit e32fe1e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@ which you probably do, then you can install **lpassh-add** by:
( set -Cfu
NAME=lpassh-add VERS=1.1.1b
BASE_URL=https://github.com/odkr/$NAME
ARCHIVE="v$VERS.tar.gz"
SIG="$ARCHIVE.asc"
ARCHIVE="v$VERS.tar.gz"; SIG="$ARCHIVE.asc"
for GET in 'curl -LsSo' 'wget -qO'; do
for FILE in "archive/$ARCHIVE" "releases/download/v$VERS/$SIG"; do
$GET "$(basename "$FILE")" "$BASE_URL/$FILE"
case $? in 0) :;; 127) continue 2;; *) exit;; esac
done; break
done
set -e
tar -xzf "$ARCHIVE"
cd -P "$NAME-$VERS" || exit
make install; )
Expand Down Expand Up @@ -112,8 +110,7 @@ you probably can download and unpack **lpassh-add** by:
( set -Cfu
NAME=lpassh-add VERS=1.1.1b
BASE_URL=https://github.com/odkr/$NAME
ARCHIVE="v$VERS.tar.gz"
SIG="$ARCHIVE.asc"
ARCHIVE="v$VERS.tar.gz"; SIG="$ARCHIVE.asc"
# Download the archive and the signature.
for GET in 'curl -LsSo' 'wget -qO'; do
for FILE in "archive/$ARCHIVE" "releases/download/v$VERS/$SIG"; do
Expand Down

0 comments on commit e32fe1e

Please sign in to comment.