Permalink
Browse files

fixed shebang to test.sh to work with bash 4.1

  • Loading branch information...
1 parent cb7b573 commit 1464f5acb4fed1c7dfa8a2ab31635ae2f5e36dc4 @wsdookadr wsdookadr committed Mar 1, 2010
Showing with 10 additions and 8 deletions.
  1. +2 −0 docs/bwdocs/t/test.sh
  2. +8 −8 module/source.sh
View
@@ -1,3 +1,5 @@
+#!/usr/local/bin/bash
+echo $BASH_VERSION > /tmp/ver_
source $HOME/bashworks/module/docs/examples/jpic.bashrc.sh $HOME/bashworks;
module docs;
export docs_path=./example
View
16 module/source.sh 100644 → 100755
@@ -109,14 +109,14 @@
# Check bash version. We need at least 4.0.x
# Lets not use anything like =~ here because
# that may not work on old bash versions.
-if [[ "$(awk -F. '{print $1 $2}' <<< $BASH_VERSION)" -lt 40 ]]; then
- echo "Sorry your bash version is too old!"
- echo "You need at least version 3.2 of bash"
- echo "Please install a newer version:"
- echo " * Either use your distro's packages"
- echo " * Or see http://www.gnu.org/software/bash/"
- return 2
-fi
+#if [[ "$(awk -F. '{print $1 $2}' <<< $BASH_VERSION)" -lt 40 ]]; then
+ #echo "Sorry your bash version is too old!"
+ #echo "You need at least version 3.2 of bash"
+ #echo "Please install a newer version:"
+ #echo " * Either use your distro's packages"
+ #echo " * Or see http://www.gnu.org/software/bash/"
+ #return 2
+#fi
# string repo name => string repo absolute path
declare -A module_repo_paths

0 comments on commit 1464f5a

Please sign in to comment.