Remove local definitions as POSIX doesn't know `local`.

master
Icedream 2018-02-18 23:04:39 +01:00
parent 07387ade1f
commit 1ad2ad12bf
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
2 changed files with 4 additions and 4 deletions

View File

@ -2,9 +2,9 @@
install_files() {
local target_dir="$1"
local source_dir="$(readlink -f "${2:-.}")"
local target_filename_prefix="${3}"
target_dir="$1"
source_dir="$(readlink -f "${2:-.}")"
target_filename_prefix="${3}"
mkdir -vp "${target_dir}"
target_dir="$(readlink -f "${target_dir}")"

View File

@ -15,7 +15,7 @@ add_tag() {
has_tags() {
for req in "$@"; do
printf "Checking for tag: $req... "
local detected=0
detected=0
while IFS= read -r line; do
if [ "$line" = "$req" ]; then
echo "yes"