Opened 4 years ago
Last modified 7 months ago
#3291 new feature-request
deluge-console exit code always "0"
Reported by: | fdge00 | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | Future |
Component: | Console UI | Version: | 1.3.15 |
Keywords: | Cc: |
Description
OS: CentOS Linux release 7.6.1810 (Core)
if executing deluge-console and the command fails it still returns with an error code of 0
deluge-console "config allow_remote" Failed to connect to 127.0.0.1:58846 with reason: Connection refused echo $? 0
Change History (3)
comment:1 Changed 4 years ago by Cas
- Milestone changed from needs verified to Future
- Type changed from bug to feature-request
comment:2 follow-up: ↓ 3 Changed 13 months ago by marcelpaulo
comment:3 in reply to: ↑ 2 Changed 7 months ago by Cas
Replying to marcelpaulo:
deluge 2.1.1 on Xubuntu 22.04 seems to set the exit code always to 1, whether the command succeeded
This is a bug that was fixed recently and should be in the next release, see #3582
Note: See
TracTickets for help on using
tickets.
deluge 2.1.1 on Xubuntu 22.04 seems to set the exit code always to 1, whether the command succeeded:
or failed:
This prevents deluge-console from being properly used in scripts. It would be useful if it could set its exit code to reflect if the operation worked or not.