Verified Commit 6d347f91 authored by Aral Balkan's avatar Aral Balkan
Browse files

Closes #97: rsync install no longer exits with error when successful

parent 017e7862
......@@ -62,6 +62,7 @@ This release implements a lot of small improvements, some of which have been lon
### Fixed
- Completed incomplete basic getting started with Hugo example in the readme.
- Automatic rsync install no longer exits with error following successful installation (#97).
## [15.3.1] - 2020-10-29
......
......@@ -225,10 +225,10 @@ class Ensure {
childProcess.execSync('sudo pacman -S rsync', options)
console.log(' 🎉 ❨site.js❩ Rsync installed using pacman.')
} else {
// No supported package managers installed. Warn the person.
console.log('\n ⚠️ ❨site.js❩ Linux: No supported package manager found for installing Rsync on Linux (tried apt, yum, and pacman). Please install Rsync manually and run Site.js again.\n')
// No supported package managers installed. Warn the person.
console.log('\n ⚠️ ❨site.js❩ Linux: No supported package manager found for installing Rsync on Linux (tried apt, yum, and pacman). Please install Rsync manually and run Site.js again.\n')
process.exit(1)
}
process.exit(1)
} catch (error) {
// There was an error and we couldn’t install the dependency. Warn the person.
console.log('\n ⚠️ ❨site.js❩ Linux: Failed to install Rsync. Please install it manually and run Site.js again.\n', error)
......
......@@ -82,7 +82,7 @@ function sync (options) {
_[25] = 'The --max-delete limit stopped deletions'
_[30] = 'Timeout in data send/receive'
_[35] = 'Timeout waiting for daemon connection'
_[127] = 'Rsync not found; please run site enable --sync'
_[127] = `Rsync not found; please run ${clr('site enable', 'green')} ${clr('--ensure-can-sync', 'cyan')}`
_[255] = `SSH error while connecting to ${clr(options.host, 'cyan')} – is this hostname/SSH certificates correct?`
// Scrape the error code from the error string (not ideal but it’s all
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment