scripts: make shebangs more portable
Use env to find the interpreter instead of a hard-coded path.
This commit is contained in:
parent
f16471aad4
commit
8dfb214ea0
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# set input/working/output folders
|
# set input/working/output folders
|
||||||
in=/Users/daniela/Desktop/scenario_001/files5s
|
in=/Users/daniela/Desktop/scenario_001/files5s
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# set input/working/output folders
|
# set input/working/output folders
|
||||||
in=/Users/daniela/Desktop/scenario_001/files5s
|
in=/Users/daniela/Desktop/scenario_001/files5s
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# set input/working/output folders
|
# set input/working/output folders
|
||||||
in=/Users/daniela/Desktop/scenario_001/files5s
|
in=/Users/daniela/Desktop/scenario_001/files5s
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# set input/working/output folders
|
# set input/working/output folders
|
||||||
in=/Users/daniela/Desktop/runs2014/case008/case008_data
|
in=/Users/daniela/Desktop/runs2014/case008/case008_data
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# set input/working/output folders
|
# set input/working/output folders
|
||||||
in=/Users/lorenzo/Desktop/scenario_001
|
in=/Users/lorenzo/Desktop/scenario_001
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# set input/working/output folders
|
# set input/working/output folders
|
||||||
in=/Users/lorenzo/Desktop/scenario_001
|
in=/Users/lorenzo/Desktop/scenario_001
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# set input/working/output folders
|
# set input/working/output folders
|
||||||
in=/Users/lorenzo/ITER/UL-Grant-161/optical-design
|
in=/Users/lorenzo/ITER/UL-Grant-161/optical-design
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/local/bin/gnuplot
|
#!/usr/bin/env gnuplot
|
||||||
|
|
||||||
set style line 1 lt 1 lw 1 lc rgb "black" pt 6 #mat
|
set style line 1 lt 1 lw 1 lc rgb "black" pt 6 #mat
|
||||||
set style line 2 lt 1 lw 1 lc rgb "red" pt 1 #v1
|
set style line 2 lt 1 lw 1 lc rgb "red" pt 1 #v1
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
awkcmd='BEGIN {lastu=0; lastl=0}; \
|
awkcmd='BEGIN {lastu=0; lastl=0}; \
|
||||||
NR<21 {print}; \
|
NR<21 {print}; \
|
||||||
NR==21 {sub("beam ","mirr "); print}; \
|
NR==21 {sub("beam ","mirr "); print}; \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# set input/working/output folders
|
# set input/working/output folders
|
||||||
in=/Users/daniela/Desktop/scenario_001/files5s
|
in=/Users/daniela/Desktop/scenario_001/files5s
|
||||||
|
Loading…
Reference in New Issue
Block a user