Skip to content

Commit

Permalink
Require >=push-v2.0 to provide a more descriptive error message
Browse files Browse the repository at this point in the history
  • Loading branch information
vaeth committed Oct 31, 2016
1 parent 30e1495 commit f158b54
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog for zram-init:

*zram-init-5.0.0:
Martin Väth <martin at mvath.de>:
- Require >=push-v2.0 to provide a more descriptive error message

*zram-init-4.0.0:
Martin Väth <martin at mvath.de>:
- New options -K -M -2 -Z for generic argument passing; usage requires
Expand Down
3 changes: 2 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ Currently, this is not a dependency: a manual method is provided as a fallback.
The latter might be removed in a future release of this script.

If you want to use one of the options -K -M -2 -Z to pass generic args,
you need push.sh in your $PATH, see see https://github.com/vaeth/push/
you need push.sh (v2.0 or newer) in your $PATH, see
https://github.com/vaeth/push/

To install this script, just copy the content of sbin into root's $PATH.
To obtain support for zsh completion, copy the content of zsh to zsh's $fpath.
Expand Down
4 changes: 3 additions & 1 deletion sbin/zram-init
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ Fatal() {
}

Push() {
. push.sh
PushA_=`push.sh 2>/dev/null` || Fatal \
"push.sh from https://github.com/vaeth/push (v2.0 or newer) required"
eval "$PushA_"
Push "$@"
}

Expand Down

0 comments on commit f158b54

Please sign in to comment.