commit
97dd2011e1
@ -1,6 +1,6 @@
|
|||||||
# #!/bin/bash
|
# Shebang. Executing bash via /usr/bin/env makes scripts more portable.
|
||||||
snippet #!
|
snippet #!
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
snippet if
|
snippet if
|
||||||
if [[ ${1:condition} ]]; then
|
if [[ ${1:condition} ]]; then
|
||||||
@ -38,3 +38,6 @@ snippet go
|
|||||||
${4:#staments};;
|
${4:#staments};;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
# Set SCRIPT_DIR variable to directory script is located.
|
||||||
|
snippet sdir
|
||||||
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
Loading…
Reference in New Issue
Block a user