Skip to content

Commit a8313f9

Browse files
committed
list: print a message if there are no pots
1 parent f7b4325 commit a8313f9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77
## [Unreleased]
88
### Changed
99
- export-ports: relax the check bout the pot's network type
10+
- list: print a message, if there are no pot yet
1011

1112
## [0.10.2] 2019-12-17
1213
### Added

share/pot/list.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ _ls_pots()
5151
local _pots _q
5252
_q=$1
5353
_pots=$( _get_pot_list )
54+
if [ -z "$_pots" ]; then
55+
if [ "$_q" != "quiet" ]; then
56+
echo "No pot created yet..."
57+
fi
58+
return
59+
fi
5460
for _p in $_pots; do
5561
if [ "$_q" = "quiet" ]; then
5662
echo "$_p"

0 commit comments

Comments
 (0)