about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-05-28 22:23:15 +0200
committerSoispha <soispha@vhack.eu>2023-05-28 22:34:09 +0200
commit9cc1b8c394e3a9e8fd451c3d7bf954578ee50bf8 (patch)
tree54e3f6b5476aa20c05eeb0e487dea96643ddfd4d
parentchore(version): v1.6.0 (diff)
downloadnixos-config-9cc1b8c394e3a9e8fd451c3d7bf954578ee50bf8.tar.gz
nixos-config-9cc1b8c394e3a9e8fd451c3d7bf954578ee50bf8.zip
Fix(hm/pkgs/scrs/ll): Don't use the tempdir provided by lib
-rwxr-xr-xhome-manager/packages/scripts/wrappers/ll5
1 files changed, 3 insertions, 2 deletions
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