This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# shellcheck shell=bash | |
####################################################################### | |
# SPDX-License-Identifier: MIT | |
# Copyright (c) 2021 TekWizely & co-authors | |
# | |
# Use of this source code is governed by the MIT license. | |
# See the accompanying LICENSE file, if present, or visit: | |
# https://opensource.org/licenses/MIT | |
####################################################################### | |
# VERSION="v1.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# shellcheck shell=bash | |
## | |
# serialize_array | |
# Serializes a bash array to a string, with a configurable seperator. | |
# | |
# $1 = source varname ( contains array to be serialized ) | |
# $2 = target varname ( will contian the serialized string ) | |
# $3 = seperator ( optional, defaults to $'\x01' ) | |
# |