Skip to content
Permalink
Browse files

don't copy address with newline

  • Loading branch information
xfanwu committed Sep 19, 2019
1 parent 199236f commit c23b9d195930bf43b7229d8cf8c22209f25397ff
Showing with 1 addition and 1 deletion.
  1. +1 −1 changeIP.js
@@ -32,7 +32,7 @@ const changeIP = function () {
execute(`aws ec2 release-address --allocation-id ${allocationId}`, res => {
console.log(`${allocationId} has been released`)
if (process.platform === "darwin") {
execute(`echo "${newIP}" | pbcopy`, res => {
execute(`echo -n "${newIP}" | pbcopy`, res => {
console.log(`Copied ${newIP} to pastboard`)
})
}

0 comments on commit c23b9d1

Please sign in to comment.
You can’t perform that action at this time.