From 72c83a013caed4f3f850731988734d125df6a720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Tue, 9 Dec 2025 22:22:03 +0100 Subject: Fix selecting single job from evaluated job ref --- src/Command/Shell.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/Command/Shell.hs') diff --git a/src/Command/Shell.hs b/src/Command/Shell.hs index dfff50a..16f366e 100644 --- a/src/Command/Shell.hs +++ b/src/Command/Shell.hs @@ -5,7 +5,6 @@ module Command.Shell ( import Control.Monad import Control.Monad.IO.Class -import Data.Bifunctor import Data.Maybe import Data.Text (Text) import Data.Text qualified as T @@ -38,8 +37,7 @@ instance Command ShellCommand where cmdShell :: ShellCommand -> CommandExec () cmdShell (ShellCommand ref) = do einput <- getEvalInput - [ job ] <- either tfail return =<< - return . either (Left . textEvalError) (first T.pack . jobsetJobsEither) =<< + job <- either (tfail . textEvalError) return =<< liftIO (runEval (evalJobReference ref) einput) sh <- fromMaybe "/bin/sh" <$> liftIO (lookupEnv "SHELL") storageDir <- getStorageDir -- cgit v1.2.3