on master help sign in
Don’t rely on root for profile output

This is easier to handle since we always know the executable will run in the project root.

commit085461ba433b7673619ebf0103515b61d0f99475 authorMatthew Bauer <mjbauer95@gmail.com> dateWed 12 Feb 2020, 14:34 (7 years ago) parent4916971
1 file changed+1−3
lib/command/src/Obelisk/Command.hs+1−3
lib/command/src/Obelisk/Command.hs+1−3
@@ -13,7 +13,6 @@ import qualified Data.ByteString.Base16 as Base16
1313import qualified Data.ByteString.Lazy as LBS
1414import Data.Foldable (for_)
1515import Data.List
16−import Data.Maybe
1716import qualified Data.Text as T
1817import Data.Text.Encoding
1918import Data.Text.Encoding.Error (lenientDecode)
@@ -376,8 +375,7 @@ ob = \case
376375 Just path -> pure path
377376 Nothing -> do
378377 time <- liftIO $ getCurrentTime
379− root <- findProjectRoot "."
380− pure $ (fromMaybe "" root) </> "profile" </> formatTime defaultTimeLocale "%Y-%m-%dT%H:%M:%S" time
378+ pure $ "profile" </> formatTime defaultTimeLocale "%Y-%m-%dT%H:%M:%S" time
381379 profile basePath
382380 ObCommand_Thunk tc -> case tc of
383381 ThunkCommand_Update thunks config -> for_ thunks (updateThunkToLatest config)