Skip to content

Commit

Permalink
update(folderStructure): no meed for subfolders anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronfagan committed May 3, 2019
1 parent 9ee3859 commit 5ebd6dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ A command line interface for [Pushover](https://pushover.net/) notifications. Th

## Installation
```
curl -s https://raw.githubusercontent.com/aaronfagan/pushover-cli/master/scripts/install.sh | bash
curl -s https://raw.githubusercontent.com/aaronfagan/pushover-cli/master/install.sh | bash
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh → install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ echo -ne "\nDownloading Pushover CLI..."
BRANCH="${1}"
if [ "${BRANCH}" == "dev" ]; then BRANCH="develop"; else BRANCH="master"; fi
git clone --branch "${BRANCH}" --depth 1 [email protected]:aaronfagan/pushover-cli.git /tmp/pushover-cli > /dev/null 2>&1
cp /tmp/pushover-cli/bin/pushover /usr/local/bin/pushover
cp /tmp/pushover-cli/pushover /usr/local/bin/pushover
chmod +x /usr/local/bin/pushover
echo -ne "done!"
VERSION=$(awk -F'"' '/^VERSION=/ {print $2}' /usr/local/bin/pushover)
Expand Down
4 changes: 2 additions & 2 deletions bin/pushover → pushover
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ upgrade() {
if [ "${BRANCH}" == "dev" ]; then BRANCH="develop"; else BRANCH="master"; fi
echo -ne '\033[0;37m'
echo -ne "\nDownloading latest version..."
curl -s https://raw.githubusercontent.com/aaronfagan/pushover-cli/${BRANCH}/scripts/install.sh | bash -s ${BRANCH} upgrade > /dev/null 2>&1
curl -s https://raw.githubusercontent.com/aaronfagan/pushover-cli/${BRANCH}/install.sh | bash -s ${BRANCH} upgrade > /dev/null 2>&1
if [ $? == 0 ]; then
echo -ne "done!"
VERSION_OLD=${VERSION}
VERSION_NEW=$(awk -F'"' '/^VERSION=/ {print $2}' ${DIR_TEMP}/bin/pushover)
VERSION_NEW=$(awk -F'"' '/^VERSION=/ {print $2}' ${DIR_TEMP}/pushover)
if [ "${VERSION_OLD}" == "${VERSION_NEW}" ]; then
echo -ne "\nPushover CLI is already the latest version (v${VERSION_OLD}).\n\n"
else
Expand Down

0 comments on commit 5ebd6dd

Please sign in to comment.