aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.file-metadatabin3666 -> 3666 bytes
-rwxr-xr-xfor-group14
2 files changed, 9 insertions, 5 deletions
diff --git a/.file-metadata b/.file-metadata
index 11686e3..b5d861e 100644
--- a/.file-metadata
+++ b/.file-metadata
Binary files differ
diff --git a/for-group b/for-group
index 1d96fc3..4ada15f 100755
--- a/for-group
+++ b/for-group
@@ -57,16 +57,19 @@ if [ "x$1" = x ]; then
exit 1
fi
+
+
+
+
# Make sure the given group is usable.
testfile=".reproducible-pipeline-group-test"
-echo "Just for a test" > $testfile
-if chgrp $1 $testfile; then
+if sg "$1" "echo test > $testfile"; then
rm $testfile
if [ "x$2" = xconfigure ]; then script="./configure"
- elif [ "x$2" = xmake ]; then script=".local/bin/make $2"
+ elif [ "x$2" = xmake ]; then script=".local/bin/make $3"
else
echo "$0: a third argument is necessary."
- echo "It specifies the action: 'configure' or 'make'"
+ echo "It specifies the action: either 'configure' or 'make'"
exit 1
fi
else
@@ -87,4 +90,5 @@ fi
# We are also exporting a special variable so `./configure' and Make can
# prepare for sanity checks and avoid re-doing the whole analysis with a
# typo (not using this script properly after configuration).
-sg $1 "umask u+r,u+w,g+r,g+w,o-r,o-w,o-x && export reproducible_paper_group_name=$1 && $script"
+export reproducible_paper_group_name="$1"
+sg "$1" "umask u+r,u+w,g+r,g+w,o-r,o-w,o-x && $script"