Skip to content

Commit

Permalink
fix: set target_org errored
Browse files Browse the repository at this point in the history
  • Loading branch information
finxxi authored and xixiaofinland committed Aug 13, 2024
1 parent c9f4374 commit 74f0d7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/sf/org.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ H.set_target_org = function()
}, function(choice)
if choice ~= nil then
local org = string.gsub(choice, '%[S%] ', '')
-- local cmd = 'sf config set target-org ' .. org
local cmd = B:new():cmd('config'):act('set target-org'):build() .. ' ' .. org
local cmd = 'sf config set target-org ' .. org
local err_msg = org .. ' - set target_org failed! Not in a sfdx project folder?'
local cb = function()
U.target_org = org
Expand Down

0 comments on commit 74f0d7e

Please sign in to comment.