Enhancement request: exec python #145

Closed
opened 2013-05-12 14:35:38 +02:00 by kseistrup · 0 comments
kseistrup commented 2013-05-12 14:35:38 +02:00 (Migrated from github.com)

In the Debian pybm script there's no need to (1) use a ‘heavy’ shell like bash, and (2) having an extra process around when it can easily be exec'ed away. So:

diff --git a/debian/pybm b/debian/pybm
index d806eed..95e61e5 100644
--- a/debian/pybm
+++ b/debian/pybm
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 cd /usr/share/pybitmessage
-python bitmessagemain.py
+exec python bitmessagemain.py

Cheers.

In the Debian pybm script there's no need to (1) use a ‘heavy’ shell like bash, and (2) having an extra process around when it can easily be exec'ed away. So: ``` diff diff --git a/debian/pybm b/debian/pybm index d806eed..95e61e5 100644 --- a/debian/pybm +++ b/debian/pybm @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh cd /usr/share/pybitmessage -python bitmessagemain.py +exec python bitmessagemain.py ``` Cheers.
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Bitmessage/PyBitmessage-2024-12-03#145
No description provided.