From 99966208022a8e3073d627bb900549d9d187ec0a Mon Sep 17 00:00:00 2001 From: Jeremy O'Brien Date: Thu, 4 Apr 2019 20:56:18 -0400 Subject: [PATCH] Make bash scripts more portable --- Ghidra/RuntimeScripts/Linux/ghidraRun | 2 +- Ghidra/RuntimeScripts/Linux/server/ghidraSvr | 2 +- Ghidra/RuntimeScripts/Linux/server/svrAdmin | 2 +- Ghidra/RuntimeScripts/Linux/server/svrInstall | 2 +- Ghidra/RuntimeScripts/Linux/server/svrUninstall | 2 +- Ghidra/RuntimeScripts/Linux/support/analyzeHeadless | 2 +- Ghidra/RuntimeScripts/Linux/support/buildGhidraJar | 2 +- Ghidra/RuntimeScripts/Linux/support/convertStorage | 2 +- Ghidra/RuntimeScripts/Linux/support/dumpGhidraThreads | 2 +- Ghidra/RuntimeScripts/Linux/support/ghidraDebug | 2 +- Ghidra/RuntimeScripts/Linux/support/launch.sh | 2 +- Ghidra/RuntimeScripts/Linux/support/pythonRun | 2 +- Ghidra/RuntimeScripts/Linux/support/sleigh | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Ghidra/RuntimeScripts/Linux/ghidraRun b/Ghidra/RuntimeScripts/Linux/ghidraRun index 06a1403f6b..0bd85b9931 100755 --- a/Ghidra/RuntimeScripts/Linux/ghidraRun +++ b/Ghidra/RuntimeScripts/Linux/ghidraRun @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #---------------------------------------- # Ghidra launch diff --git a/Ghidra/RuntimeScripts/Linux/server/ghidraSvr b/Ghidra/RuntimeScripts/Linux/server/ghidraSvr index 318812f1cd..25e660ca40 100755 --- a/Ghidra/RuntimeScripts/Linux/server/ghidraSvr +++ b/Ghidra/RuntimeScripts/Linux/server/ghidraSvr @@ -1,4 +1,4 @@ -#! /bin/bash +#!/usr/bin/env bash #--------------------------------------------------------------------------------------- # Ghidra Server Script (see svrREADME.html for usage details) diff --git a/Ghidra/RuntimeScripts/Linux/server/svrAdmin b/Ghidra/RuntimeScripts/Linux/server/svrAdmin index e365610da9..936fcb49d7 100755 --- a/Ghidra/RuntimeScripts/Linux/server/svrAdmin +++ b/Ghidra/RuntimeScripts/Linux/server/svrAdmin @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # *********************************************************** # ** Arguments (each -argument option may be repeated): # ** [-add ] [-remove ] [-reset ] [-dn ""] diff --git a/Ghidra/RuntimeScripts/Linux/server/svrInstall b/Ghidra/RuntimeScripts/Linux/server/svrInstall index 7be945712f..43f65158a7 100755 --- a/Ghidra/RuntimeScripts/Linux/server/svrInstall +++ b/Ghidra/RuntimeScripts/Linux/server/svrInstall @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash OS=`uname -s` diff --git a/Ghidra/RuntimeScripts/Linux/server/svrUninstall b/Ghidra/RuntimeScripts/Linux/server/svrUninstall index bfc69b3772..c82c877541 100755 --- a/Ghidra/RuntimeScripts/Linux/server/svrUninstall +++ b/Ghidra/RuntimeScripts/Linux/server/svrUninstall @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash OS=`uname -s` diff --git a/Ghidra/RuntimeScripts/Linux/support/analyzeHeadless b/Ghidra/RuntimeScripts/Linux/support/analyzeHeadless index 2c95d531a1..b535227e61 100755 --- a/Ghidra/RuntimeScripts/Linux/support/analyzeHeadless +++ b/Ghidra/RuntimeScripts/Linux/support/analyzeHeadless @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #---------------------------------------------------------------------- # Ghidra Headless Analyzer launch (see analyzeHeadlessREADME.html) diff --git a/Ghidra/RuntimeScripts/Linux/support/buildGhidraJar b/Ghidra/RuntimeScripts/Linux/support/buildGhidraJar index 9a9efcdd82..66b87cb0c2 100755 --- a/Ghidra/RuntimeScripts/Linux/support/buildGhidraJar +++ b/Ghidra/RuntimeScripts/Linux/support/buildGhidraJar @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #---------------------------------------- # Build a Ghidra jar diff --git a/Ghidra/RuntimeScripts/Linux/support/convertStorage b/Ghidra/RuntimeScripts/Linux/support/convertStorage index 6dda8960e6..f261e9e5d6 100755 --- a/Ghidra/RuntimeScripts/Linux/support/convertStorage +++ b/Ghidra/RuntimeScripts/Linux/support/convertStorage @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #---------------------------------------- # Ghidra Filesystem Conversion launch diff --git a/Ghidra/RuntimeScripts/Linux/support/dumpGhidraThreads b/Ghidra/RuntimeScripts/Linux/support/dumpGhidraThreads index fa38f28ade..5c3860483c 100755 --- a/Ghidra/RuntimeScripts/Linux/support/dumpGhidraThreads +++ b/Ghidra/RuntimeScripts/Linux/support/dumpGhidraThreads @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #---------------------------------------- # Ghidra Debug Thread Dumper launch diff --git a/Ghidra/RuntimeScripts/Linux/support/ghidraDebug b/Ghidra/RuntimeScripts/Linux/support/ghidraDebug index ea01e99821..c32240e5d3 100755 --- a/Ghidra/RuntimeScripts/Linux/support/ghidraDebug +++ b/Ghidra/RuntimeScripts/Linux/support/ghidraDebug @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #---------------------------------------- # Ghidra debug launch diff --git a/Ghidra/RuntimeScripts/Linux/support/launch.sh b/Ghidra/RuntimeScripts/Linux/support/launch.sh index 942ca6ee64..3900de47b4 100755 --- a/Ghidra/RuntimeScripts/Linux/support/launch.sh +++ b/Ghidra/RuntimeScripts/Linux/support/launch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash umask 027 diff --git a/Ghidra/RuntimeScripts/Linux/support/pythonRun b/Ghidra/RuntimeScripts/Linux/support/pythonRun index 9578bc328b..e30c1e8485 100755 --- a/Ghidra/RuntimeScripts/Linux/support/pythonRun +++ b/Ghidra/RuntimeScripts/Linux/support/pythonRun @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #---------------------------------------- # Ghidra Python launch diff --git a/Ghidra/RuntimeScripts/Linux/support/sleigh b/Ghidra/RuntimeScripts/Linux/support/sleigh index 194e043c47..77e15a0b50 100755 --- a/Ghidra/RuntimeScripts/Linux/support/sleigh +++ b/Ghidra/RuntimeScripts/Linux/support/sleigh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #---------------------------------------- # Ghidra Sleigh language compiler launch