summaryrefslogtreecommitdiff
path: root/src/Command/Shell.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Command/Shell.hs')
-rw-r--r--src/Command/Shell.hs4
1 files changed, 1 insertions, 3 deletions
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