Skip to content

Commit

Permalink
Update Sync-Pootle.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
matejskubic authored Jan 31, 2019
1 parent a509ea5 commit b7cf332
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sync-Pootle.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ function Sync-Pootle
,
# Skip upload from local to remote SSH
[switch]
$skipUpload
$processUpload
,
# Skip download operation from remote SSH to local
[switch]
$skipDownload
$processDownload
)

#$VerbosePreference=[System.Management.Automation.ActionPreference]::Continue
Expand Down Expand Up @@ -152,14 +152,14 @@ function syntWithPootle()
$ssh.Connect()

pushd $root
if ($skipUpload)
if ($processUpload)
{
$xlfFilesToSync = @(ls $exportXlifRootTo -Recurse -File)
transferTranslations $xlfFilesToSync -direction upload
processShhCommand $ssh.RunCommand("sudo /opt/bitnami/apps/pootle/bin/pootle update_stores --noinput --project=$pootleServerProject --language=$targetCulture -v 3")
}

if ($skipDownload)
if ($processDownload)
{
processShhCommand $ssh.RunCommand("sudo /opt/bitnami/apps/pootle/bin/pootle sync_stores --noinput --project=$pootleServerProject --language=$targetCulture -v 3")
processShhCommand $ssh.RunCommand("sudo chmod -R g+rw $pootleServerRootPath")
Expand Down

0 comments on commit b7cf332

Please sign in to comment.