# Detect use under userns (unsupported)
for arg in "$@"; do
- [ "$arg" == "--" ] && break
- if [ "$arg" == "--mapped-uid" -o "$arg" == "--mapped-gid" ]; then
+ [ "$arg" = "--" ] && break
+ if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then
echo "This template can't be used for unprivileged containers." 1>&2
echo "You may want to try the \"download\" template instead." 1>&2
exit 1
# Detect use under userns (unsupported)
for arg in "$@"; do
- [ "$arg" == "--" ] && break
- if [ "$arg" == "--mapped-uid" -o "$arg" == "--mapped-gid" ]; then
+ [ "$arg" = "--" ] && break
+ if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then
echo "This template can't be used for unprivileged containers." 1>&2
echo "You may want to try the \"download\" template instead." 1>&2
exit 1
# Detect use under userns (unsupported)
for arg in "$@"; do
- [ "$arg" == "--" ] && break
- if [ "$arg" == "--mapped-uid" -o "$arg" == "--mapped-gid" ]; then
+ [ "$arg" = "--" ] && break
+ if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then
echo "This template can't be used for unprivileged containers." 1>&2
echo "You may want to try the \"download\" template instead." 1>&2
exit 1
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public
# Detect use under userns (unsupported)
for arg in "$@"; do
- [ "$arg" == "--" ] && break
- if [ "$arg" == "--mapped-uid" -o "$arg" == "--mapped-gid" ]; then
+ [ "$arg" = "--" ] && break
+ if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then
echo "This template can't be used for unprivileged containers." 1>&2
echo "You may want to try the \"download\" template instead." 1>&2
exit 1
# Detect use under userns (unsupported)
for arg in "$@"; do
- [ "$arg" == "--" ] && break
- if [ "$arg" == "--mapped-uid" -o "$arg" == "--mapped-gid" ]; then
+ [ "$arg" = "--" ] && break
+ if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then
echo "This template can't be used for unprivileged containers." 1>&2
echo "You may want to try the \"download\" template instead." 1>&2
exit 1
# Detect use under userns (unsupported)
for arg in "$@"; do
- [ "$arg" == "--" ] && break
- if [ "$arg" == "--mapped-uid" -o "$arg" == "--mapped-gid" ]; then
+ [ "$arg" = "--" ] && break
+ if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then
echo "This template can't be used for unprivileged containers." 1>&2
echo "You may want to try the \"download\" template instead." 1>&2
exit 1
# Parse it
echo ""
echo "---"
- echo "DIST\tRELEASE\tARCH\tVARIANT\tBUILD"
+ printf "DIST\tRELEASE\tARCH\tVARIANT\tBUILD\n"
echo "---"
while read line; do
# Basic CSV parser
[ -n "$DOWNLOAD_VARIANT" ] && [ "$4" != "$DOWNLOAD_VARIANT" ] && continue
[ -z "$5" ] || [ -z "$6" ] && continue
- echo "$1\t$2\t$3\t$4\t$5"
+ printf "$1\t$2\t$3\t$4\t$5\n"
done < ${DOWNLOAD_TEMP}/index
echo "---"
# Detect use under userns (unsupported)
for arg in "$@"; do
- [ "$arg" == "--" ] && break
- if [ "$arg" == "--mapped-uid" -o "$arg" == "--mapped-gid" ]; then
+ [ "$arg" = "--" ] && break
+ if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then
echo "This template can't be used for unprivileged containers." 1>&2
echo "You may want to try the \"download\" template instead." 1>&2
exit 1
# Detect use under userns (unsupported)
for arg in "$@"; do
- [ "$arg" == "--" ] && break
- if [ "$arg" == "--mapped-uid" -o "$arg" == "--mapped-gid" ]; then
+ [ "$arg" = "--" ] && break
+ if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then
echo "This template can't be used for unprivileged containers." 1>&2
echo "You may want to try the \"download\" template instead." 1>&2
exit 1
# Detect use under userns (unsupported)
for arg in "$@"; do
- [ "$arg" == "--" ] && break
- if [ "$arg" == "--mapped-uid" -o "$arg" == "--mapped-gid" ]; then
+ [ "$arg" = "--" ] && break
+ if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then
echo "This template can't be used for unprivileged containers." 1>&2
echo "You may want to try the \"download\" template instead." 1>&2
exit 1
# Detect use under userns (unsupported)
for arg in "$@"; do
- [ "$arg" == "--" ] && break
- if [ "$arg" == "--mapped-uid" -o "$arg" == "--mapped-gid" ]; then
+ [ "$arg" = "--" ] && break
+ if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then
echo "This template can't be used for unprivileged containers." 1>&2
echo "You may want to try the \"download\" template instead." 1>&2
exit 1
# Detect use under userns (unsupported)
for arg in "$@"; do
- [ "$arg" == "--" ] && break
- if [ "$arg" == "--mapped-uid" -o "$arg" == "--mapped-gid" ]; then
+ [ "$arg" = "--" ] && break
+ if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then
echo "This template can't be used for unprivileged containers." 1>&2
echo "You may want to try the \"download\" template instead." 1>&2
exit 1
# Detect use under userns (unsupported)
for arg in "$@"; do
- [ "$arg" == "--" ] && break
- if [ "$arg" == "--mapped-uid" -o "$arg" == "--mapped-gid" ]; then
+ [ "$arg" = "--" ] && break
+ if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then
echo "This template can't be used for unprivileged containers." 1>&2
echo "You may want to try the \"download\" template instead." 1>&2
exit 1
# Detect use under userns (unsupported)
for arg in "$@"; do
- [ "$arg" == "--" ] && break
- if [ "$arg" == "--mapped-uid" -o "$arg" == "--mapped-gid" ]; then
+ [ "$arg" = "--" ] && break
+ if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then
echo "This template can't be used for unprivileged containers." 1>&2
echo "You may want to try the \"download\" template instead." 1>&2
exit 1
# Detect use under userns (unsupported)
for arg in "$@"; do
- [ "$arg" == "--" ] && break
- if [ "$arg" == "--mapped-uid" -o "$arg" == "--mapped-gid" ]; then
+ [ "$arg" = "--" ] && break
+ if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then
echo "This template can't be used for unprivileged containers." 1>&2
echo "You may want to try the \"download\" template instead." 1>&2
exit 1