Bash strict mode is super-important

This commit is contained in:
Nemo 2020-05-16 01:03:49 +05:30
parent 3d27656b6b
commit f28e659511
4 changed files with 15 additions and 8 deletions

View File

@ -1,3 +1,5 @@
#!/bin/sh
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
docker run -v $(pwd):/data ryanfb/inaudible@sha256:b66738d235be1007797e3a0a0ead115fa227e81e2ab5b7befb97d43f7712fac5

View File

@ -1,3 +1,5 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
find . -iname "*.cbr" -print0 |xargs -0 -L1 -I {} ebook-convert '{}' .pdf --dont-grayscale

View File

@ -1,6 +1,7 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
gettoken ()
{
export "`basename $1`"="$(pass show $1)"

View File

@ -1,4 +1,6 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
PATH=$PATH:/home/nemo/projects/scripts/