Skip to content

Commit

Permalink
replace sh to bash
Browse files Browse the repository at this point in the history
Signed-off-by: Daniell Mesquita <daniellmesquita@protonmail.com>
  • Loading branch information
danimesq committed Oct 17, 2021
1 parent 216a57c commit 810d5ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .gitmeta
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
chown -h 197609:197609 './.gitmeta'
chmod 0644 './.gitmeta'
/usr/bin/touch -hcmd "2021-10-16 04:34:36.0000000000 -0300" './.gitmeta'
/usr/bin/touch -hcad "2021-10-16 00:00:00.0000000000 -0300" './.gitmeta'
chown -h 197609:197609 './README.md'
chmod 0644 './README.md'
/usr/bin/touch -hcmd "2021-10-16 04:22:28.0000000000 -0300" './README.md'
/usr/bin/touch -hcmd "2021-10-16 05:10:02.0000000000 -0300" './README.md'
/usr/bin/touch -hcad "2021-10-16 00:00:00.0000000000 -0300" './README.md'
chown -h 197609:197609 './git-meta.sh'
chmod 0755 './git-meta.sh'
/usr/bin/touch -hcmd "2021-10-16 03:41:14.0000000000 -0300" './git-meta.sh'
/usr/bin/touch -hcad "2021-10-16 00:00:00.0000000000 -0300" './git-meta.sh'
/usr/bin/touch -hcmd "2021-10-17 19:33:08.0000000000 -0300" './git-meta.sh'
/usr/bin/touch -hcad "2021-10-17 00:00:00.0000000000 -0300" './git-meta.sh'
2 changes: 1 addition & 1 deletion git-meta.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/bash

This comment has been minimized.

Copy link
@Explorer09

Explorer09 Oct 18, 2021

Contributor

You removed the -e option! Why?

This comment has been minimized.

Copy link
@danimesq

danimesq Oct 18, 2021

Author Member

Forgot it.

Is adding the -e important?

This comment has been minimized.

Copy link
@Explorer09

Explorer09 Oct 18, 2021

Contributor

I thought you knew that. -e causes the script to exit early whenever a command exits with a non-zero status and the status is not used as if or while conditionals. It works as if you suffix every command line with || exit $?, and it's always good for scripts released for large number of users.

This comment has been minimized.

Copy link
@Explorer09

Explorer09 Oct 18, 2021

Contributor

This comment has been minimized.

Copy link
@danimesq

danimesq Oct 18, 2021

Author Member

@Explorer09
restored: 78265b5

This comment has been minimized.

Copy link
@danimesq

danimesq Oct 18, 2021

Author Member

An important idea I have is to store metadata only of files that are in the commit, not all of the versioned: #5

This would take use of the pre-commit hook.


#git-cache-meta -- simple file meta data caching and applying.
#Simpler than etckeeper, metastore, setgitperms, etc.
Expand Down

0 comments on commit 810d5ff

Please sign in to comment.