Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

unexpected EOF while looking for matching `''



Hi, 

I have a following bash script minor maintenance;

#!/bin/bash

brew update && brew upgrade &&  brew cleanup
conda update conda -y
conda update --all -y
conda clean --all -y
pip list -o | sed "1,2 d" | cut -d '\'' '\'' -f1 | xargs -n1 pip3 install -U --no-deps
pip cache purge
echo "all done for today!!”

This script used work but lately it gives me an error as follows;

(base) MacStudioAH:~ $ ./maintenance.script
Updated 2 taps (homebrew/core and homebrew/cask).
Collecting package metadata (current_repodata.json): done
Solving environment: done

# All requested packages already installed.

Collecting package metadata (current_repodata.json): done
Solving environment: done

# All requested packages already installed.

There are no unused tarball(s) to remove.
Will remove 1 index cache(s).
There are no unused package(s) to remove.
There are no tempfile(s) to remove.
There are no logfile(s) to remove.
./maintenance.script: line 7: unexpected EOF while looking for matching `''
./maintenance.script: line 11: syntax error: unexpected end of file

A culprit is “ pip list -o | sed "1,2 d" | cut -d '\'' '\'' -f1 | xargs -n1 pip3 install -U --no-deps” but I have  exactly the same line in  alias as follows;

(base) MacStudioAH:~ $ alias pu
pu='pip3 list -o | sed "1,2 d" |cut -d '\'' '\'' -f1 |  xargs -n1 pip3 install -U --no-deps’

I’d appreciate if anybody could shed a light on this.  

Thanks. 





Messages sorted by: Reverse Date, Date, Thread, Author