update.sh error #95

Closed
opened 2026-10-05 01:22:01 +02:00 by adam · 7 comments
Owner

Ususally uses under venv:
sh update.sh

It looks like now it says weird error about: update.sh: 48: [[: not found

From https://github.com/spudgunman/meshing-around
6f38bff..4952bb3 main -> origin/main
Pulling latest changes from GitHub...
From https://github.com/spudgunman/meshing-around

  • branch main -> FETCH_HEAD
    Updating 6f38bff..4952bb3
    Fast-forward
    INSTALL.md | 183 ++++++++++++++++++++++
    README.md | 609 +++++++++---------------------------------------------------------------
    etc/README.md | 75 +++++++++
    logs/README.md | 16 +-
    modules/README.md | 789 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------
    modules/adding_more.md | 132 ++++++++++++++++
    modules/games/README.md | 2 +-
    modules/scheduler.py | 5 +-
    script/README.md | 60 +++++++
    9 files changed, 1274 insertions(+), 597 deletions(-)
    create mode 100644 INSTALL.md
    create mode 100644 etc/README.md
    create mode 100644 modules/adding_more.md
    create mode 100644 script/README.md
    update.sh: 48: [[: not found
    Backing up data/ directory...
    Backup of data/ completed: data_backup.tar.gz
    Merging configuration files...
    Configuration merge completed. Please review config_new.ini and ini_merge_log.txt.
    Update completed successfully?
Ususally uses under venv: sh update.sh It looks like now it says weird error about: update.sh: 48: [[: not found From https://github.com/spudgunman/meshing-around 6f38bff..4952bb3 main -> origin/main Pulling latest changes from GitHub... From https://github.com/spudgunman/meshing-around * branch main -> FETCH_HEAD Updating 6f38bff..4952bb3 Fast-forward INSTALL.md | 183 ++++++++++++++++++++++ README.md | 609 +++++++++--------------------------------------------------------------- etc/README.md | 75 +++++++++ logs/README.md | 16 +- modules/README.md | 789 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------ modules/adding_more.md | 132 ++++++++++++++++ modules/games/README.md | 2 +- modules/scheduler.py | 5 +- script/README.md | 60 +++++++ 9 files changed, 1274 insertions(+), 597 deletions(-) create mode 100644 INSTALL.md create mode 100644 etc/README.md create mode 100644 modules/adding_more.md create mode 100644 script/README.md update.sh: 48: [[: not found Backing up data/ directory... Backup of data/ completed: data_backup.tar.gz Merging configuration files... Configuration merge completed. Please review config_new.ini and ini_merge_log.txt. Update completed successfully? <!-- github-sync-id:3543195421 -->
adam closed this issue 2026-10-05 01:22:01 +02:00
Author
Owner

No, its the same

sh update.sh
Fetching latest changes from GitHub...
Pulling latest changes from GitHub...
From https://github.com/spudgunman/meshing-around

  • branch main -> FETCH_HEAD
    Already up to date.
    update.sh: 48: [[: not found
    Backing up data/ directory...
    Backup of data/ completed: data_backup.tar.gz
    Merging configuration files...
    Configuration merge completed. Please review config_new.ini and ini_merge_log.txt.
    Update completed successfully?
No, its the same sh update.sh Fetching latest changes from GitHub... Pulling latest changes from GitHub... From https://github.com/spudgunman/meshing-around * branch main -> FETCH_HEAD Already up to date. update.sh: 48: [[: not found Backing up data/ directory... Backup of data/ completed: data_backup.tar.gz Merging configuration files... Configuration merge completed. Please review config_new.ini and ini_merge_log.txt. Update completed successfully? <!-- github-comment-id:3435294319 -->
Author
Owner

Is it a permissions issue just try copying the file manually?

Is it a permissions issue just try copying the file manually? <!-- github-comment-id:3435371578 -->
Author
Owner

Is it a permissions issue just try copying the file manually?

Nor sure which file and where?

Iam not installed bot under /opt (just said n while asking), it is just under it's home dir for non priveleged user, install.sh looks a little bit buggy for that, and required to be run twice fro installation completed properly.

And now update.sh diong something that cause this error 48

> Is it a permissions issue just try copying the file manually? Nor sure which file and where? Iam not installed bot under /opt (just said n while asking), it is just under it's home dir for non priveleged user, install.sh looks a little bit buggy for that, and required to be run twice fro installation completed properly. And now update.sh diong something that cause this error 48 <!-- github-comment-id:3435389683 -->
Author
Owner

Yes try a pull sorry programming in bash and python I put wrong syntax and didn't notice

Yes try a pull sorry programming in bash and python I put wrong syntax and didn't notice <!-- github-comment-id:3435431342 -->
Author
Owner

Yes try a pull sorry programming in bash and python I put wrong syntax and didn't notice

diff meshing-around/update1.sh meshing-around/update.sh
48c48
< if [ ! -f "modules/custom_scheduler.py" ]; then

if ! -f modules/custom_scheduler.py ; then

> Yes try a pull sorry programming in bash and python I put wrong syntax and didn't notice diff meshing-around/update1.sh meshing-around/update.sh 48c48 < if [ ! -f "modules/custom_scheduler.py" ]; then --- > if [[ ! -f modules/custom_scheduler.py ]]; then <!-- github-comment-id:3435465036 -->
Author
Owner

Sorry for bad formatting, looks like i messed up with github markdown

Sorry for bad formatting, looks like i messed up with github markdown <!-- github-comment-id:3435474333 -->
Author
Owner

The line is how you gave it is git pull working, I just changed it to a -n cp to make it "more safe"

The line is how you gave it is git pull working, I just changed it to a -n cp to make it "more safe" <!-- github-comment-id:3435503509 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/meshing-around#95