summaryrefslogtreecommitdiffstats
path: root/.local/bin/compiler
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-08-14 13:10:05 -0400
committerLuke Smith <luke@lukesmith.xyz>2021-08-14 13:10:05 -0400
commiteef59cafd76dbb66ab47cf3ee9987387100aa17a (patch)
tree079d294e7fb5d41fb1e6c018717adbb67835dd1a /.local/bin/compiler
parentebadf06c5abe7b887c3c9d089f39b48940b9134f (diff)
parent32f91e223d2cc3ce734939fe5a1f8ad5578e5e25 (diff)
downloadeibhear-eef59cafd76dbb66ab47cf3ee9987387100aa17a.tar.gz
eibhear-eef59cafd76dbb66ab47cf3ee9987387100aa17a.tar.zst
eibhear-eef59cafd76dbb66ab47cf3ee9987387100aa17a.zip
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.local/bin/compiler')
-rwxr-xr-x.local/bin/compiler2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/compiler b/.local/bin/compiler
index 39e149e..faf37c9 100755
--- a/.local/bin/compiler
+++ b/.local/bin/compiler
@@ -53,5 +53,5 @@ case "$ext" in
scad) openscad -o "$base".stl "$file" ;;
sent) setsid -f sent "$file" 2>/dev/null ;;
tex) textype "$file" ;;
- *) head -n1 "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;;
+ *) sed -n '/^#!/s/^#!//p; q' "$file" | xargs -r -I % "$file" ;;
esac