mirror of
https://github.com/tanrax/bash-folders.git
synced 2025-10-10 18:25:50 +02:00
moved "set -e" to run(); removed "exit 1" statement from usage()
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
usage() {
|
||||
cat << EOF
|
||||
USAGE: ${0##*/} [OPTIONS] PATH
|
||||
@@ -15,8 +13,6 @@ OPTIONS:
|
||||
SEE ALSO:
|
||||
cwebp(1), inotifywait(1)
|
||||
EOF
|
||||
|
||||
exit 1
|
||||
}
|
||||
|
||||
require() {
|
||||
@@ -28,6 +24,8 @@ require() {
|
||||
run() {
|
||||
local file extension
|
||||
|
||||
set -e
|
||||
|
||||
mkdir --parents "${1}"
|
||||
|
||||
while read -r file; do
|
||||
|
Reference in New Issue
Block a user