From 9cc1b8c394e3a9e8fd451c3d7bf954578ee50bf8 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 28 May 2023 22:23:15 +0200 Subject: Fix(hm/pkgs/scrs/ll): Don't use the tempdir provided by lib --- home-manager/packages/scripts/wrappers/ll | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'home-manager/packages/scripts/wrappers') diff --git a/home-manager/packages/scripts/wrappers/ll b/home-manager/packages/scripts/wrappers/ll index f1d96f15..c43b619d 100755 --- a/home-manager/packages/scripts/wrappers/ll +++ b/home-manager/packages/scripts/wrappers/ll @@ -1,13 +1,14 @@ -#! /usr/bin/env dash +#!/usr/bin/env dash # shellcheck source=/dev/null SHELL_LIBRARY_VERSION="1.1.3" . %SHELL_LIBRARY_PATH -last_directory="$(mktmp)" +last_directory="$(mktemp)" command lf -last-dir-path="$last_directory" "$@" dir="$(cat "$last_directory")" cd "$dir" || die "$dir does not exist!" +rm "$last_directory" # vim: ft=sh -- cgit 1.4.1