fix(snippets): use a correct(er) shebang

This commit is contained in:
Michele Cereda
2024-09-22 21:15:45 +02:00
parent 39e8232b93
commit ed00719fe6
8 changed files with 8 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# sources: # sources:
# - https://wiki.archlinux.org/?title=BOINC#Laptop_overheating_and_battery_duration_reduction # - https://wiki.archlinux.org/?title=BOINC#Laptop_overheating_and_battery_duration_reduction

View File

@@ -1,4 +1,4 @@
#!sh #!/usr/bin/env sh
# Sources: # Sources:
# - https://superuser.com/questions/621870/test-if-a-port-on-a-remote-system-is-reachable-without-telnet # - https://superuser.com/questions/621870/test-if-a-port-on-a-remote-system-is-reachable-without-telnet

View File

@@ -1,4 +1,4 @@
#!sh #!/usr/bin/env sh
# Sources: # Sources:
# - https://stackoverflow.com/questions/8800578/how-to-colorize-diff-on-the-command-line # - https://stackoverflow.com/questions/8800578/how-to-colorize-diff-on-the-command-line

View File

@@ -1,4 +1,4 @@
#/usr/bin/env sh #!/usr/bin/env sh
# Get the *sector* size of partitions in 512-byte sectors # Get the *sector* size of partitions in 512-byte sectors
sudo blockdev --getsz '/dev/nvme0n1p1' sudo blockdev --getsz '/dev/nvme0n1p1'

View File

@@ -1,4 +1,4 @@
#!sh #!/usr/bin/env sh
is_strictly_false () { is_strictly_false () {
if [[ "$1" =~ '0|^[Ff][Aa][Ll][Ss][Ee]$|^[Nn][Oo]?$|^$' ]] if [[ "$1" =~ '0|^[Ff][Aa][Ll][Ss][Ee]$|^[Nn][Oo]?$|^$' ]]

View File

@@ -1,4 +1,4 @@
#!sh #!/usr/bin/env sh
# Quote whatever is not a space. # Quote whatever is not a space.
sed -E 's|([[:graph:]]+)|"\1"|g' sed -E 's|([[:graph:]]+)|"\1"|g'

View File

@@ -1,3 +1,3 @@
#!/usr/bin/env sh #!/usr/bin/env sh
eval `ssh-agent` && ssh-add eval $(ssh-agent) && ssh-add

View File

@@ -1,4 +1,4 @@
#!sh #!/usr/bin/env sh
# Just `vim` but read-only. # Just `vim` but read-only.
view 'file' view 'file'