]> gitweb.michael.orlitzky.com - bash.d.git/commitdiff
Use POSIX sh compatible syntax where possible.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 7 Dec 2017 21:53:49 +0000 (16:53 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 7 Dec 2017 21:53:49 +0000 (16:53 -0500)
aliases
compilation
options
sage

diff --git a/aliases b/aliases
index 2d85320a45a2298831f3900041c76acdb6fe4968..405d02b3dd12cb298be7037e81ae4b888db4f73b 100644 (file)
--- a/aliases
+++ b/aliases
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 alias df='df --human-readable'
 alias du='du --human-readable --summarize *'
index a166d6678bdc9fca71f317b911f5b93c919bc63d..1dc51dee4bfddf6ea1ee3caf3009808a00130095 100644 (file)
@@ -1,14 +1,14 @@
-#!/bin/bash
+#!/bin/sh
 
 # Grab CFLAGS, etc. from the profile...
 if [ -f /etc/portage/make.profile/make.defaults ]; then
-    source /etc/portage/make.profile/make.defaults
+    . /etc/portage/make.profile/make.defaults
 fi
 
 # and from make.conf, allowing the values in make.conf to override the
 # ones in the profile.
 if [ -f /etc/portage/make.conf ]; then
-    source /etc/portage/make.conf
+    . /etc/portage/make.conf
 fi
 
 
diff --git a/options b/options
index 9bbe669328c9244ee19e7a5e694e0153ef21477f..a833df743f01ae4ceb7d7ad7ad4102dcfec2b640 100644 (file)
--- a/options
+++ b/options
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # No stupid disclaimers.
 export WHOIS_OPTIONS="-H"
diff --git a/sage b/sage
index 44e317d6595b2047a08d442e72855882c22c4dc3..e1dd0bd8528cb666f1ba46f053ff24fc8a7ffff6 100644 (file)
--- a/sage
+++ b/sage
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # This is the default, but let's make sure.
 export SAGE_INSTALL_GCC=no