Skip to content

Commit 4be68ca

Browse files
committed
Use /usr/bin/env instead of absolute paths in shebangs
The FHS standardizes the /usr/bin directory but no standard specifies bash as a program installed by default. For example, NixOS doesn't install bash into this directory. Instead, the standardized /usr/bin/env program can be used to execute the bash located using the PATH environment variable.
1 parent c1151b3 commit 4be68ca

14 files changed

Lines changed: 14 additions & 14 deletions

File tree

deploy_libs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# FeatureIDE
44
mvn deploy:deploy-file -DgroupId=de.ovgu -DartifactId=featureide.lib.fm -Dversion=3.8.1 -Durl=file:./local-maven-repo/ -DrepositoryId=local-maven-repo -DupdateReleaseInfo=true -Dfile=./lib/de.ovgu.featureide.lib.fm-v3.8.1.jar

linegraph/createGraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
import argparse
44
import graphviz

linegraph/graphGeneration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/python3
1+
#!/usr/bin/env python3
22

33
# constants from our Java code
44
JAVA_TREE_NAME_SEPARATOR = "$$$"

linegraph/renderPatterns.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
python3 renderLinegraph.py --pattern --atomics --fontsize 7 "/mnt/c/Users/Paul Bittner/Documents/MyDocuments/Paper/Notes/Papers/VariabilityEditPatternMining/Results/Patterns/$1"

mining/pipeline.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# call as pipline.sh [input-path] [output-path] [lib-path]
44
# e.g. ./pipeline.sh '/home/schwinnez/projects/Frequent Subgraph Mining/case studies/variability_patterns/dataset_1/diffgraphs/' '/home/schwinnez/projects/Frequent Subgraph Mining/case studies/variability_patterns/dataset_1/output/' './lib/'

mining/plot_dot_from_graph_ml.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
input_file = "$1"
33
output_file = "$2"
44

replication/esecfse22/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#!/usr/bin/env bash
22
# Assure that the script is only called from the esecfse22 folder
33
current_dir=$(pwd)
44
expected_path="/replication/esecfse22"

replication/esecfse22/docker/execute.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#!/usr/bin/env bash
22

33
if [ "$1" == '' ] || [ "$1" == '--help' ] || [ "$1" == '-help' ]; then
44
echo ">>>>>>>>> USAGE <<<<<<<<<<"

replication/esecfse22/execute.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#!/usr/bin/env bash
22
# Assure that the script is only called from the esecfse22 folder
33
current_dir=$(pwd)
44
expected_path="/replication/esecfse22"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash
1+
#!/usr/bin/env bash
22
echo "Stopping Docker container. This will take a moment..."
33
docker stop "$(docker ps -a -q --filter "ancestor=diff-detective")"
44
echo "...done."

0 commit comments

Comments
 (0)