Remove local definitions as POSIX doesn't know `local`.
parent
07387ade1f
commit
1ad2ad12bf
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
|
|
||||||
install_files() {
|
install_files() {
|
||||||
local target_dir="$1"
|
target_dir="$1"
|
||||||
local source_dir="$(readlink -f "${2:-.}")"
|
source_dir="$(readlink -f "${2:-.}")"
|
||||||
local target_filename_prefix="${3}"
|
target_filename_prefix="${3}"
|
||||||
|
|
||||||
mkdir -vp "${target_dir}"
|
mkdir -vp "${target_dir}"
|
||||||
target_dir="$(readlink -f "${target_dir}")"
|
target_dir="$(readlink -f "${target_dir}")"
|
||||||
|
|
|
@ -15,7 +15,7 @@ add_tag() {
|
||||||
has_tags() {
|
has_tags() {
|
||||||
for req in "$@"; do
|
for req in "$@"; do
|
||||||
printf "Checking for tag: $req... "
|
printf "Checking for tag: $req... "
|
||||||
local detected=0
|
detected=0
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
if [ "$line" = "$req" ]; then
|
if [ "$line" = "$req" ]; then
|
||||||
echo "yes"
|
echo "yes"
|
||||||
|
|
Loading…
Reference in New Issue