!qAVFqlBoxJSJCUdUSS:matrix.org

matrix-shell-suite

51 Members
Sending matrix messages using shell scripts. Check it out over on GitLab: https://gitlab.com/darnir/matrix-shell-suite. Documentation: https://darnir.gitlab.io/matrix-shell-suite/index.html37 Servers

Load older messages


SenderMessageTime
4 Aug 2019
@darnir:talk.go7box.xyzdarnir I would've done sed '/set -o pipefail/d' 19:17:16
@darnir:talk.go7box.xyzdarnirOn all the files in the repo19:17:41
@AppAraat:matrix.orgAppAraatI have a shellscript which automatically sets up key based SSH access which is as POSIX as I could make it, unfortunately though Gitlab botched the removal of the repo so now it's on GH: https://github.com/absorber/sshstuff19:17:51
@AppAraat:matrix.orgAppAraat darnir: that also includes files in the .git* dir 19:18:10
@errhammr:matrix.orgerrhammr moved to a different home servershellcheck doesn't complain about nothin...19:20:52
@darnir:talk.go7box.xyzdarnir
In reply to @AppAraat:matrix.org
darnir: that also includes files in the .git* dir
No of course not. You pipe the list of files from git ls—tree
19:22:14
@darnir:talk.go7box.xyzdarnir Or just from find src/ 19:22:34
@AppAraat:matrix.orgAppAraat some of them are also in tests 19:22:57
@AppAraat:matrix.orgAppAraat errhammr: did you use the web version? 19:23:10
@darnir:talk.go7box.xyzdarnir On phone so it's hard to type in the full command 19:23:56
@AppAraat:matrix.orgAppAraat I did the following: find "$PWD" -type f -name ".*" -prune -o -print0 | xargs -0 sed -i /"set -o pipefail"/d 19:28:36
@AppAraat:matrix.orgAppAraat that find command was the most POSIX way to do it according to a SO answer I closed unfortunately 19:29:05
@AppAraat:matrix.orgAppAraat * that find command was the most POSIX way to do it according to a SO answer (the tab of which I closed already unfortunately) 19:29:23
@errhammr:matrix.orgerrhammr moved to a different home server
In reply to @AppAraat:matrix.org
errhammr: did you use the web version?
I used the local one that is in the Ubuntu repos
19:36:08
@AppAraat:matrix.orgAppAraatbig chance that one might be outdated19:36:29
@darnir:talk.go7box.xyzdarnir Is -exec not a POSIX extension for find? 19:36:53
@errhammr:matrix.orgerrhammr moved to a different home server
$ shellcheck --version
ShellCheck - shell script analysis tool
version: 0.4.6
license: GNU General Public License, version 3
website: http://www.shellcheck.net
19:37:34
@darnir:talk.go7box.xyzdarnir That's quite old 19:38:05
@darnir:talk.go7box.xyzdarnir0.7 came out a few days ago19:38:22
@errhammr:matrix.orgerrhammr moved to a different home serverAlready compiling from github19:44:02
@AppAraat:matrix.orgAppAraat darnir: it might be, but here's where I got that command from: https://askubuntu.com/a/749708 20:10:39
@darnir:talk.go7box.xyzdarnir Sure. But instead of print0 and xargs you could just call -exec sed ... {} \; 20:13:35
@darnir:talk.go7box.xyzdarnir Unless exec is a GNU extension to find. I'm not sure about that 20:14:05
@AppAraat:matrix.orgAppAraatapparently it's in POSIX yeah: https://pubs.opengroup.org/onlinepubs/009695399/utilities/find.html - TIL20:18:11
@errhammr:matrix.orgerrhammr moved to a different home serverA useful feature that is included in POSIX? Wow20:38:13
5 Aug 2019
@ralfi:matrix.org@ralfi:matrix.org left the room.12:44:16
@darnir:talk.go7box.xyzdarnir AppAraat: Awaiting the PR from you 19:06:43
@swedneck:permaweb.ioswedneck:permaweb.iohi, how do i use this?19:34:31
@swedneck:permaweb.ioswedneck:permaweb.ioi see no install instructions anywhere19:34:41
@darnir:talk.go7box.xyzdarnir swedneck:permaweb.io: Hi 19:34:55

Show newer messages


Back to Room ListRoom Version: 1