Live data from Hacker News

My deployment platform is a shell script

j3s.sh

11–20 of 141 posts

Re: My deployment platform is a shell script

#15

Not to deride this (too much), but the 'robustness' of deployments with shell scripts is tempting bait. Things are until they aren't, 'nobody rides for free' - decide what you're willing to pay. Example: this interprets the output of 'ls' . Reliability is dependent on good quoting/never introducing a project with spaces Ansible is a nice middle ground, personally. I write the state that differs, use a library of scri…

Putting

  SAVEIFS=$IFS
  IFS=$(echo -en "\n\b")
or something similar at the top of the script might not come across as comparable to adopting Ansible to some people.

Re: My deployment platform is a shell script

#17

Not to deride this (too much), but the 'robustness' of deployments with shell scripts is tempting bait. Things are until they aren't, 'nobody rides for free' - decide what you're willing to pay. Example: this interprets the output of 'ls' . Reliability is dependent on good quoting/never introducing a project with spaces Ansible is a nice middle ground, personally. I write the state that differs, use a library of scri…

Parsing ls is an anti-pattern, but the author says it works for years - we all do mistakes and as long as it works you don't notice.

And it's an easy fix:

    - for project in $(ls go-cicd); do
    + cd go-cicd || exit 1; for project in \*; do

Re: My deployment platform is a shell script

#18
post #12

my script will never: - go down - require an upgrade - force me to migrate - surprise me - keep me up at night Oh my sweet summer child.

[flagged]

> The phrase “sweet summer's child" became a popular way of describing an innocent, naive person (especially among American writers) during the early Victorian era. It was used by a number of authors during the 1840s, notably:- Fredrika Bremer (1840), James Staunton Babcock (1849) in The West Wind and Mary Whitaker (1850) in The Creole. It has been used in a number of other novels, poems and speeches (especially by US authors) throughout the 20th century. "The West Wind," by James Staunton Babcock, New York, 1849::Thy home is all around,:Sweet summer child of light and air,:Like God's own presence, felt, ne'er found,: A Spirit everywhere! The 1996 fantasy novel A Game of Thrones by George R. R. Martin adapted this former usage for a passage in which a young boy is called a "sweet summer child" by an old woman, since seasons last years in the novel's world and he has yet to experience winter. It was later popularized by its use in the episode "Lord Snow " (2011) of the television adaptation Game of Thrones .

Re: My deployment platform is a shell script

#19
post #16

Earlier quoted context omitted.

[flagged]

It's an expression that implies that someone is naive and/or inexperienced.

I find it condescending and cliched in the same way those in this thread do:

https://news.ycombinator.com/item?id=39417916

It adds absolutely nothing to the discussion. A better response is for the GP to tell us why they think the OP is naive. It's a low effort unsubstantiated jab that pollutes the comments.

Re: My deployment platform is a shell script

#20
post #17

Not to deride this (too much), but the 'robustness' of deployments with shell scripts is tempting bait. Things are until they aren't, 'nobody rides for free' - decide what you're willing to pay. Example: this interprets the output of 'ls' . Reliability is dependent on good quoting/never introducing a project with spaces Ansible is a nice middle ground, personally. I write the state that differs, use a library of scri…

Parsing ls is an anti-pattern, but the author says it works for years - we all do mistakes and as long as it works you don't notice. And it's an easy fix: - for project in $(ls go-cicd); do + cd go-cicd || exit 1; for project in \*; do

I would suggest not to mess with the current working directory and instead do something like this:

  for project in go-cicd/*; do
    project="${project#*/}"
Post reply on HN