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
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
USAGE: ${0##*/} [OPTIONS] PATH
|
USAGE: ${0##*/} [OPTIONS] PATH
|
||||||
@@ -15,8 +13,6 @@ OPTIONS:
|
|||||||
SEE ALSO:
|
SEE ALSO:
|
||||||
cwebp(1), inotifywait(1)
|
cwebp(1), inotifywait(1)
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
exit 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
require() {
|
require() {
|
||||||
@@ -28,6 +24,8 @@ require() {
|
|||||||
run() {
|
run() {
|
||||||
local file extension
|
local file extension
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
mkdir --parents "${1}"
|
mkdir --parents "${1}"
|
||||||
|
|
||||||
while read -r file; do
|
while read -r file; do
|
||||||
|
Reference in New Issue
Block a user