Revert "repeared shebang"
This commit is contained in:
parent
504cd2eea7
commit
8084d02b61
@ -1,6 +1,6 @@
|
|||||||
# Shebang. Executing bash via /usr/bin/env makes scripts more portable.
|
# Shebang. Executing bash via /usr/bin/env makes scripts more portable.
|
||||||
snippet bash
|
snippet #!
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
snippet if
|
snippet if
|
||||||
if [[ ${1:condition} ]]; then
|
if [[ ${1:condition} ]]; then
|
||||||
@ -79,8 +79,11 @@ snippet getopt
|
|||||||
shift $(($OPTIND-1))
|
shift $(($OPTIND-1))
|
||||||
snippet root
|
snippet root
|
||||||
if [ \$(id -u) -ne 0 ]; then exec sudo \$0; fi
|
if [ \$(id -u) -ne 0 ]; then exec sudo \$0; fi
|
||||||
|
|
||||||
snippet fun
|
snippet fun
|
||||||
|
${1:function_name}() {
|
||||||
|
${0:#function_body}
|
||||||
|
}
|
||||||
|
snippet ffun
|
||||||
function ${1:function_name}() {
|
function ${1:function_name}() {
|
||||||
${0:#function_body}
|
${0:#function_body}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user