mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 03:20:12 -08:00
Refactor variable assignments and improve script readability in validate-plex-backups.sh and validate-plex-recovery.sh
- Changed inline variable assignments to separate declaration and assignment for clarity. - Updated condition checks and log messages for better readability and consistency. - Added a backup of validate-plex-recovery.sh for safety. - Introduced a new script run-docker-tests.sh for testing setup in Docker containers. - Enhanced ssh-login.sh to improve condition checks and logging functionality.
This commit is contained in:
@@ -115,7 +115,7 @@ show_status() {
|
||||
# Check deployment config
|
||||
if [ -d "$HOME/.docker-deployment" ]; then
|
||||
echo -e "${GREEN}✅ Deployment configuration: Ready${NC}"
|
||||
local servers=$(ls "$HOME/.docker-deployment/servers/"*.yml 2>/dev/null | wc -l)
|
||||
local servers=$(find . -maxdepth 1 -type f | wc -l)
|
||||
echo " Configured servers: $servers"
|
||||
else
|
||||
echo -e "${RED}❌ Deployment configuration: Not initialized${NC}"
|
||||
|
||||
Reference in New Issue
Block a user