Skip to content

Commit

Permalink
fix(index.ts): oop i left th user as witherking25 and not deck
Browse files Browse the repository at this point in the history
  • Loading branch information
KP2048 committed Nov 9, 2022
1 parent 7559447 commit b58878f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ function deploy()
build()
const zip = `${plugin.name}-${package_.version}.zip`;
child_process.execSync(`unzip ${path.join(process.cwd(), 'build', zip)} -d ${path.join(process.cwd(), 'build', 'deploy')}`)
child_process.execSync(`ssh witherking25@${deck.deckip} -p ${deck.deckport} ${deck.deckkey.replace('$HOME', process.env.HOME ? process.env.HOME : '')} 'mkdir -p ${deck.deckdir}/homebrew/pluginloader && mkdir -p ${deck.deckdir}/homebrew/plugins'`)
child_process.execSync(`ssh witherking25@${deck.deckip} -p ${deck.deckport} ${deck.deckkey.replace('$HOME', process.env.HOME ? process.env.HOME : '')} 'echo "${deck.deckpass}" | sudo -S chmod -R ug+rw ${deck.deckdir}/homebrew/'`)
child_process.execSync(`rsync -azp --delete --chmod=D0755,F0755 --rsh='ssh -p ${deck.deckport} ${deck.deckkey.replace('$HOME', process.env.HOME ? process.env.HOME : '')}' ${path.join(process.cwd(), 'build', 'deploy', plugin.name)} witherking25@${deck.deckip}:${deck.deckdir}/homebrew/plugins`)
child_process.execSync(`ssh deck@${deck.deckip} -p ${deck.deckport} ${deck.deckkey.replace('$HOME', process.env.HOME ? process.env.HOME : '')} 'mkdir -p ${deck.deckdir}/homebrew/pluginloader && mkdir -p ${deck.deckdir}/homebrew/plugins'`)
child_process.execSync(`ssh deck@${deck.deckip} -p ${deck.deckport} ${deck.deckkey.replace('$HOME', process.env.HOME ? process.env.HOME : '')} 'echo "${deck.deckpass}" | sudo -S chmod -R ug+rw ${deck.deckdir}/homebrew/'`)
child_process.execSync(`rsync -azp --delete --chmod=D0755,F0755 --rsh='ssh -p ${deck.deckport} ${deck.deckkey.replace('$HOME', process.env.HOME ? process.env.HOME : '')}' ${path.join(process.cwd(), 'build', 'deploy', plugin.name)} deck@${deck.deckip}:${deck.deckdir}/homebrew/plugins`)
}

0 comments on commit b58878f

Please sign in to comment.