Skip to content

Commit ad27c5c

Browse files
authored
Update about sync and using trap in scripts
1 parent 5ef53e7 commit ad27c5c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,13 @@ The output of running check.sh should look like this:
8888
8989
The script only creates links if they don't exist and will rename any previous file to have a .backup extension.
9090

91+
*Update* I have quit using the git sync and instead have Syncthing keep the ~/.bash.d folder in sync across machines. Either way works, but if you do that, you can modify the scripts to not to a git pull on startup.
92+
9193
## Note about Scripts
9294
NOTE: The .sh files are NOT proper shell scripts. They are sourced. You do not need to start them with #!/bin/bash (although you can) and they do not need to have executable permissions.
9395

96+
One byproduct of this is that you should NOT set traps in the scripts. If you must (and, yes, sometimes you must), you should either reset the trap when done or run in a subshell (that is ( trap .... ; xxx .... )
97+
9498

9599
----------
96100

0 commit comments

Comments
 (0)