Nils
434c50264b
Improve shell script robustness and error handling
...
- Added `set -euo pipefail` to ensure the script exits on errors, undefined variables, or failed pipelines.
- Enhanced error handling for SSH agent start and key addition, with clear error messages.
- Replaced `echo` with `printf` for more reliable and formatted output.
- Introduced optional legacy RSA hostkey handling based on input parameters.
- Improved overall script readability with clearer variable names and structured conditionals.
2024-08-22 20:44:37 +02:00
Steven Agyekum
9603fc8186
feat: Make usage of legacy rsa hostkeys conditional
...
The usage of RSA host keys introduced with c7baefdc23
was adjusted to make it conditional/configurable and to keep
backward compatibility
2024-03-06 12:16:35 +01:00
Steven Agyekum
580c98fc2e
Merge pull request #58 from Burnett01/release/5.3
...
Backmerge unofficial release/5.3 into new upcoming rlease/7.0.0
2024-03-06 12:04:45 +01:00
Steven Agyekum
d732b39732
improved string empty check for remote_path
2023-06-08 17:35:29 +02:00
Steven Agyekum
570fd6bb52
fix empty string check
2023-06-08 17:27:31 +02:00
Steven Agyekum
bef106d127
validate remote_path is not empty
2023-06-08 17:23:41 +02:00
Jason Gill
c7baefdc23
Allow RSA host keys
...
RSA host keys are disabled by default on OpenSSH 8.8+ which is used by the base Alpine image, but many servers still use RSA host keys
2022-03-02 12:29:53 -05:00
Steven Agyekum
342e70b07e
Release/v5 ( #13 )
...
* Reference JoshPiper/rsync-docker @ 1.1.0
* See: https://github.com/JoshPiper/rsync-docker/tree/1.1.0
* New features: Support passphrase protected keys
* supply SSH_PASS (key passphrase) to agent-add
Read more about the behavior: https://github.com/JoshPiper/rsync-docker#agent-askpass
* add new remote_key_pass config option
* Update README.md
* Update README.md
* 2.0 is EOL
* support 5.0, drop 2.0
* default to empty string
* reference JoshPiper/rsync-docker @ v1.2.0
2021-08-02 21:57:01 +02:00
Steven Agyekum
ea3f2b7314
improve code-formatting
2020-06-22 21:40:12 +02:00
JoshPiper
9f59b515f6
Update entrypoint.sh
2020-01-05 11:19:21 +00:00
JoshPiper
c5464e03ed
Use sh not bash.
2020-01-05 11:11:59 +00:00
JoshPiper
0010c2adf6
Update entrypoint.sh
2020-01-05 11:06:14 +00:00
Steven Agyekum
f5c5431bf6
Update entrypoint.sh
2019-12-27 16:12:10 +01:00
Steven Agyekum
0186c3a6b2
added INPUT_REMOTE_PORT input for different port
2019-12-04 19:00:33 +01:00
Steven Agyekum
72f04677de
new inputs and shell
2019-12-04 18:29:34 +01:00
Steven Agyekum
44615a7931
remove --includes, --excludes and --filters switches. Use --switches instead to include/exclude files and folders interchangeably
2019-11-22 00:28:06 +01:00
Steven Agyekum
afc3d5d8d4
added INPUT_INCLUDES and INPUT_FILTERS args
2019-11-12 23:37:25 +01:00
Steven Agyekum
59a1203852
add support to add additional remote shell (--rsh) commands
2019-11-12 23:06:22 +01:00
Steven Agyekum
f8b88bb4fa
not on bash
2019-11-12 22:55:41 +01:00
Steven Agyekum
0370813668
fix 'mkdir: cannot create directory' error
...
Fix ``mkdir: cannot create directory '/github/home/.ssh': File exists`` error
2019-11-12 22:49:15 +01:00
Mick Ryan
c36b09ff5d
add new param for path
2019-09-14 09:53:44 -07:00
Mick Ryan
2026161543
Fix typo
2019-09-14 02:04:26 -07:00
Mick Ryan
9abeae5926
change args
2019-09-14 01:59:20 -07:00
Barry Bell
f8860c9bce
Initial code commit
2019-02-09 13:17:45 +00:00