[gedit/wip/lantw/dont-hard-code-paths-to-interpreters: 2/2] Don't hard-code paths to interpreters



commit 54a1ff4ca73caec084c7de7326f8d63c2f05f2a2
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Mon Jul 8 20:24:54 2019 +0800

    Don't hard-code paths to interpreters
    
    Not all systems install the same interpreter into the same place.
    Assuming it is always installed in /bin or /usr/bin can lead to errors
    when running these scripts. /bin/sh is the only exception here. Almost
    all configure scripts use it, so it should be safe to use.

 help/C/check_status.sh                            | 2 +-
 plugins/externaltools/scripts/gedit-tool-merge.pl | 2 +-
 tools/generate-message.py                         | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/help/C/check_status.sh b/help/C/check_status.sh
index 1cd3d169b..deefeb890 100755
--- a/help/C/check_status.sh
+++ b/help/C/check_status.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Produce a summary of the statuses of all of the .page topics
 # (Not done properly, but it's OK for a rough estimate)
diff --git a/plugins/externaltools/scripts/gedit-tool-merge.pl 
b/plugins/externaltools/scripts/gedit-tool-merge.pl
index 780d95dd5..b7cbd770b 100755
--- a/plugins/externaltools/scripts/gedit-tool-merge.pl
+++ b/plugins/externaltools/scripts/gedit-tool-merge.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # gedit-tool-merge.pl
 # This file is part of gedit
diff --git a/tools/generate-message.py b/tools/generate-message.py
index 04bd09fea..cdc32dfc4 100755
--- a/tools/generate-message.py
+++ b/tools/generate-message.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 from xml.etree import ElementTree
 import sys


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]