Skip to content

Commit

Permalink
Fixes for Debian/*ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
gmkurtzer committed Apr 6, 2016
1 parent fdbe63a commit 9321074
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

if [ ! -f "autogen.sh" ]; then
/bin/echo "ERROR: Run this from the singularity source root"
Expand All @@ -16,19 +16,19 @@ TEMPDIR=`mktemp -d /tmp/singularity-test.XXXXXX`
SINGULARITY_CACHEDIR="$TEMPDIR"
export SINGULARITY_CACHEDIR MESSAGELEVEL

. ./libexec/functions


/bin/echo "${BLUE}Gaining/checking sudo access...${NORMAL}"
/bin/echo "Gaining/checking sudo access..."
sudo true

if [ -z "$CLEAN_SHELL" ]; then
/bin/echo "${BLUE}Building/Installing Singularity to temporary directory${NORMAL}"
/bin/echo "Building/Installing Singularity to temporary directory"
/bin/echo "Reinvoking in a clean shell"
sleep 1
exec env -i CLEAN_SHELL=1 PATH="/bin:/usr/bin:/sbin:/usr/sbin" bash "$0" "$*"
fi

. ./libexec/functions

make clean >/dev/null 2>&1
stest 0 sh ./autogen.sh --prefix="$TEMPDIR"
stest 0 make
Expand Down

0 comments on commit 9321074

Please sign in to comment.