Skip to content

Commit

Permalink
src: Fix opposite if-condition that caused uselessly error msg (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Venriès authored May 31, 2017
1 parent 83948eb commit d9f174e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pug_update() {

pacman -Qqen > /tmp/pacman.list
if ! diff /tmp/pacman.gist /tmp/pacman.list > /dev/null 2>&1; then
if cat /tmp/pacman.list | gist -u "${GIST_NAT}" -f "${PACMANFILE}"; then
if ! cat /tmp/pacman.list | gist -u "${GIST_NAT}" -f "${PACMANFILE}"; then
echo "${bold}${red}::${white} Failed to update.${normal}"
exit 1
fi
Expand Down

0 comments on commit d9f174e

Please sign in to comment.