Skip to content

Commit 20b3f1c

Browse files
committed
Correctly handle default cookie
1 parent 227098d commit 20b3f1c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ then you can copy the entop script to a bin directory
2020
## Usage
2121
To run entop make sure you have Erlang installed, cecho and entop libraries installed, and that the script is in your path.
2222

23-
Usage: ./entop <TARGETNODE> <COOKIE>
23+
Usage: ./entop <TARGETNODE> [<COOKIE>]
2424

2525
### An example of how you run entop:
2626

entop

+2-4
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@
2626
##==============================================================================
2727

2828
## Shell script for running entop. See the function usage() for instructions.
29-
TARGETNODE=
30-
COOKIE=
3129

3230
function usage() {
33-
echo -e "Usage: ./entop <TARGETNODE> <COOKIE>"
31+
echo -e "Usage: ./entop <TARGETNODE> [<COOKIE>]"
3432
}
3533

3634
if [[ $# -lt 1 ]]; then
@@ -41,7 +39,7 @@ fi
4139
TARGETNODE=$1
4240
shift
4341

44-
COOKIE=$1
42+
COOKIE=${1-undefined}
4543
shift
4644

4745
if [[ -d _build ]] ; then

0 commit comments

Comments
 (0)