From e46f7e63a65d3d8efc9187fcee96fa4cfdc8b776 Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Tue, 27 Sep 2011 19:21:26 +0300 Subject: [PATCH] *.sh: Don't depent on bash to be at /bin/bash. Scripts use /usr/bin/env bash instead of /bin/bash --- install.sh | 2 +- uninstall.sh | 2 +- upgrade.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 28d6eaae..9b6dd325 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "If you are upgrading, press ctrl + c NOW! You have 15 seconds time to cancel this. rerunning this script will overwrite your backups and it makes uninstall.sh useless." sleep 15; echo "Taking backups..." diff --git a/uninstall.sh b/uninstall.sh index 5c7bf296..8fa630e1 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "Restoring default files..." cat ~/.bashrc.default.backup > ~/.bashrc cat ~/.bash_aliases.default.backup > ~/.bash_aliases diff --git a/upgrade.sh b/upgrade.sh index 364071ce..7df5feb7 100755 --- a/upgrade.sh +++ b/upgrade.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "Backing up files..." touch ~/.bash_exports cat ~/.bash_exports > ~/.bash_exports.old.backup