diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-27 18:56:15 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-27 18:56:15 +0200 |
| commit | 69f17767abac2a31ffdaeebc6bc5997b102ffe92 (patch) | |
| tree | b0916e5e401cfb4b3cdd520e8cedd7aa355451a7 /SOURCE/CORE/core-backup.sh | |
| parent | 6c563f788d60acab6947637ea6e05eeef103abd1 (diff) | |
| download | bash-notes-69f17767abac2a31ffdaeebc6bc5997b102ffe92.tar.gz bash-notes-69f17767abac2a31ffdaeebc6bc5997b102ffe92.zip | |
Fix title, git toggle, push target, showconf and restore bugs
- addnote: use the title passed on the command line instead of
storing an empty one.
- USEGIT: test for the value true, so USEGIT=false actually
disables git even when GITREMOTE is set.
- git: push to origin HEAD instead of a hardcoded master branch.
- configtext: print GITCLIENT, already defaulted to hostname.
- backup_restore: replace the malformed .git test, always remove
the existing .git before copying the backup one.
- helptext/README: --backup requires a destination.
- README: add Development Approach section.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'SOURCE/CORE/core-backup.sh')
| -rw-r--r-- | SOURCE/CORE/core-backup.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/SOURCE/CORE/core-backup.sh b/SOURCE/CORE/core-backup.sh index 7a0b6d1..f03782e 100644 --- a/SOURCE/CORE/core-backup.sh +++ b/SOURCE/CORE/core-backup.sh @@ -73,9 +73,7 @@ backup_restore() { fi # restoring git repo subdirectory if [ -d $BACKUPDIR/.git ]; then - if [ /bin/ls -A ${BASEDIR}/.git ]; then - rm -rf ${BASEDIR}/.git - fi + rm -rf "${BASEDIR}/.git" cp -r --verbose ${BACKUPDIR}/.git ${BASEDIR}/ fi ;; |
