Closed autoantwort closed 8 months ago
Can you tell which shell your using?
I am using zsh
, but I get the same error when I use a bash shell.
bash-3.2$ bash --version
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)
Copyright (C) 2007 Free Software Foundation, Inc.
Ok minimal script is:
#!/bin/bash
set -o nounset
test=()
echo "$test"
fails with test.sh: line 4: test: unbound variable
Ah I have found http://mywiki.wooledge.org/BashFAQ/112
An empty array becomes an error (in bash 4.3, but not in bash 4.4, where there is no error even without assignment array=()):
When I execute the following commands on my computer I get the following error:
Full Output
``` β git_projekte git clone https://github.com/juliushaertl/nextcloud-docker-dev cd nextcloud-docker-dev ./bootstrap.sh Cloning into 'nextcloud-docker-dev'... remote: Enumerating objects: 2901, done. remote: Counting objects: 100% (875/875), done. remote: Compressing objects: 100% (231/231), done. remote: Total 2901 (delta 702), reused 736 (delta 641), pack-reused 2026 Receiving objects: 100% (2901/2901), 30.18 MiB | 4.42 MiB/s, done. Resolving deltas: 100% (1599/1599), done. β© Performing system checks β docker is properly installed β git is properly installed β Docker is properly executable β© Setup your environment in an .env file β nextcloud.local (127.0.0.1) already exists β nextcloud.local (::1) already exists β nextcloud2.local (127.0.0.1) already exists β nextcloud2.local (::1) already exists β nextcloud3.local (127.0.0.1) already exists β nextcloud3.local (::1) already exists β stable16.local (127.0.0.1) already exists β stable16.local (::1) already exists β stable17.local (127.0.0.1) already exists β stable17.local (::1) already exists β stable18.local (127.0.0.1) already exists β stable18.local (::1) already exists β stable19.local (127.0.0.1) already exists β stable19.local (::1) already exists β stable20.local (127.0.0.1) already exists β stable20.local (::1) already exists β stable21.local (127.0.0.1) already exists β stable21.local (::1) already exists β stable22.local (127.0.0.1) already exists β stable22.local (::1) already exists β stable23.local (127.0.0.1) already exists β stable23.local (::1) already exists β stable24.local (127.0.0.1) already exists β stable24.local (::1) already exists β stable25.local (127.0.0.1) already exists β stable25.local (::1) already exists β stable26.local (127.0.0.1) already exists β stable26.local (::1) already exists β stable27.local (127.0.0.1) already exists β stable27.local (::1) already exists β stable28.local (127.0.0.1) already exists β stable28.local (::1) already exists β mail.local (127.0.0.1) already exists β mail.local (::1) already exists β collabora.local (127.0.0.1) already exists β collabora.local (::1) already exists β codedev.local (127.0.0.1) already exists β codedev.local (::1) already exists β onlyoffice.local (127.0.0.1) already exists β onlyoffice.local (::1) already exists β proxy.local (127.0.0.1) already exists β proxy.local (::1) already exists β hpb.local (127.0.0.1) already exists β hpb.local (::1) already exists β push.local (127.0.0.1) already exists β push.local (::1) already exists β keycloak.local (127.0.0.1) already exists β keycloak.local (::1) already exists β portal.local (127.0.0.1) already exists β portal.local (::1) already exists β gs1.local (127.0.0.1) already exists β gs1.local (::1) already exists β gs2.local (127.0.0.1) already exists β gs2.local (::1) already exists β lookup.local (127.0.0.1) already exists β lookup.local (::1) already exists β elasticsearch.local (127.0.0.1) already exists β elasticsearch.local (::1) already exists β elasticsearch-ui.local (127.0.0.1) already exists β elasticsearch-ui.local (::1) already exists β pgadmin.local (127.0.0.1) already exists β pgadmin.local (::1) already exists β phpmyadmin.local (127.0.0.1) already exists β phpmyadmin.local (::1) already exists β talk-signaling.local (127.0.0.1) already exists β talk-signaling.local (::1) already exists β talk-recording.local (127.0.0.1) already exists β talk-recording.local (::1) already exists Setting custom containers for arm platform β© Setting up folder structure and fetching repositories π Fetching server (this might take a while to finish) Cloning into 'workspace/server'... remote: Enumerating objects: 11762, done. remote: Counting objects: 100% (11762/11762), done. remote: Compressing objects: 100% (9385/9385), done. remote: Total 11762 (delta 3146), reused 5900 (delta 2017), pack-reused 0 Receiving objects: 100% (11762/11762), 60.23 MiB | 15.97 MiB/s, done. Resolving deltas: 100% (3146/3146), done. Updating files: 100% (10863/10863), done. Submodule '3rdparty' (https://github.com/nextcloud/3rdparty.git) registered for path '3rdparty' Cloning into '/Users/leanderSchulten/git_projekte/nextcloud-docker-dev/workspace/server/3rdparty'... remote: Enumerating objects: 52661, done. remote: Counting objects: 100% (4367/4367), done. remote: Compressing objects: 100% (2121/2121), done. remote: Total 52661 (delta 2406), reused 3969 (delta 2178), pack-reused 48294 Receiving objects: 100% (52661/52661), 70.62 MiB | 26.51 MiB/s, done. Resolving deltas: 100% (28294/28294), done. Submodule path '3rdparty': checked out 'be6be0e0c5803c083e0684bb4e3c6ec6352da9fa' ./bootstrap.sh: line 158: APPS_CLONE_PARAMS[@]: unbound variable π Fetching viewer β Failed to install viewer ./bootstrap.sh: line 158: APPS_CLONE_PARAMS[@]: unbound variable π Fetching recommendations β Failed to install recommendations ./bootstrap.sh: line 158: APPS_CLONE_PARAMS[@]: unbound variable π Fetching files_pdfviewer β Failed to install files_pdfviewer ./bootstrap.sh: line 158: APPS_CLONE_PARAMS[@]: unbound variable π Fetching profiler β Failed to install profiler ./bootstrap.sh: line 158: APPS_CLONE_PARAMS[@]: unbound variable π Fetching hmr_enabler β Failed to install hmr_enabler ./bootstrap.sh: line 158: APPS_CLONE_PARAMS[@]: unbound variable π Fetching circles β Failed to install circles βββββββββββββββββββββββββββββββββββββββββββ β oOo Ready to start developing π β βββββββββββββββββββββββββββββββββββββββββββ π Start the Nextcloud server by running $ docker compose up -d nextcloud π€ Stop it with $ docker compose stop nextcloud π Fresh install and wipe all data $ docker compose down -v Note that for performance reasons the server repository has been cloned with --depth=1. To get the full history it is highly recommended to run: $ cd workspace/server $ git fetch --unshallow $ git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" $ git fetch origin This may take some time depending on your internet connection speed. You might as well use the script in scripts/download-full-history.sh. For more details about the individual setup options see the README.md file or checkout the repo at https://github.com/juliushaertl/nextcloud-docker-dev ```