From 9108d474af7776767d93eb933ff4b0b09772917a Mon Sep 17 00:00:00 2001 From: ene Date: Sun, 19 Feb 2023 21:29:01 +0100 Subject: Feat(lf): Add dependencies for the shell scripts --- home-manager/config/lf/cmds/mk_ln.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'home-manager/config/lf/cmds/mk_ln.sh') diff --git a/home-manager/config/lf/cmds/mk_ln.sh b/home-manager/config/lf/cmds/mk_ln.sh index 71a70a36..f2129763 100644 --- a/home-manager/config/lf/cmds/mk_ln.sh +++ b/home-manager/config/lf/cmds/mk_ln.sh @@ -1,11 +1,11 @@ -#!/bin/sh +#!/usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH while IFS= read -r i;do set -- "$@" "$i" -done < "$(tmp "cat ~/.local/share/lf/files")" +done < "$(tmp 'cat ~/.local/share/lf/files')" mode="$1" shift @@ -19,7 +19,7 @@ fi case "$mode" in copy) while [ "$#" -gt 0 ]; do - file=$1 + file="$1" ans="$(basename "$file")" while ls -a "$(pwd)" | grep --word-regexp "$ans" > /dev/null;do -- cgit 1.4.1