From 05e674a5d1a965040a6e030c617840c9d567f173 Mon Sep 17 00:00:00 2001 From: ene Date: Sat, 25 Feb 2023 08:10:59 +0100 Subject: Fix(packages): Don't use hardcoded library paths --- home-manager/packages/scripts/deprecated/comp | 4 ++-- home-manager/packages/scripts/deprecated/git-init | 4 ++-- home-manager/packages/scripts/deprecated/java_compiler/clpa | 2 +- home-manager/packages/scripts/deprecated/java_compiler/fmt | 4 ++-- home-manager/packages/scripts/deprecated/java_compiler/jc | 2 +- home-manager/packages/scripts/deprecated/java_compiler/jj | 2 +- home-manager/packages/scripts/deprecated/java_compiler/lib | 2 +- home-manager/packages/scripts/deprecated/java_compiler/new | 2 +- .../packages/scripts/deprecated/java_compiler/no-pack/jc-no-pack | 2 +- .../packages/scripts/deprecated/java_compiler/no-pack/jj-no-pack | 2 +- home-manager/packages/scripts/deprecated/remove_start | 2 +- home-manager/packages/scripts/deprecated/shell_script_os_setup/lo | 4 ++-- 12 files changed, 16 insertions(+), 16 deletions(-) (limited to 'home-manager/packages/scripts/deprecated') diff --git a/home-manager/packages/scripts/deprecated/comp b/home-manager/packages/scripts/deprecated/comp index e29cae5c..15b005c8 100755 --- a/home-manager/packages/scripts/deprecated/comp +++ b/home-manager/packages/scripts/deprecated/comp @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH file=$HOME/hi tmp=$(mktemp) diff --git a/home-manager/packages/scripts/deprecated/git-init b/home-manager/packages/scripts/deprecated/git-init index fd1f5399..1d007b6f 100755 --- a/home-manager/packages/scripts/deprecated/git-init +++ b/home-manager/packages/scripts/deprecated/git-init @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH cp -R $HOME/.local/share/git-template/* "$(pwd)" [ -d ./.git ] || git init diff --git a/home-manager/packages/scripts/deprecated/java_compiler/clpa b/home-manager/packages/scripts/deprecated/java_compiler/clpa index c33ed025..0c8ba47a 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/clpa +++ b/home-manager/packages/scripts/deprecated/java_compiler/clpa @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null pw=$(pwd) diff --git a/home-manager/packages/scripts/deprecated/java_compiler/fmt b/home-manager/packages/scripts/deprecated/java_compiler/fmt index 4dce0c02..7bfe920b 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/fmt +++ b/home-manager/packages/scripts/deprecated/java_compiler/fmt @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH cd ..; pw=$(pwd); diff --git a/home-manager/packages/scripts/deprecated/java_compiler/jc b/home-manager/packages/scripts/deprecated/java_compiler/jc index 8f95108c..d1c867d4 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/jc +++ b/home-manager/packages/scripts/deprecated/java_compiler/jc @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 cd .. diff --git a/home-manager/packages/scripts/deprecated/java_compiler/jj b/home-manager/packages/scripts/deprecated/java_compiler/jj index 6d6a5aed..3f3254ba 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/jj +++ b/home-manager/packages/scripts/deprecated/java_compiler/jj @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 noColor=yes . ./lib diff --git a/home-manager/packages/scripts/deprecated/java_compiler/lib b/home-manager/packages/scripts/deprecated/java_compiler/lib index 8446d1ce..cf3e0203 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/lib +++ b/home-manager/packages/scripts/deprecated/java_compiler/lib @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2059,SC2066 diff --git a/home-manager/packages/scripts/deprecated/java_compiler/new b/home-manager/packages/scripts/deprecated/java_compiler/new index 577558b0..22f871f5 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/new +++ b/home-manager/packages/scripts/deprecated/java_compiler/new @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null . ./lib diff --git a/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jc-no-pack b/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jc-no-pack index bc9db9de..0cd9864e 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jc-no-pack +++ b/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jc-no-pack @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 . ./lib diff --git a/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jj-no-pack b/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jj-no-pack index 90a9e74e..d476ce52 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jj-no-pack +++ b/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jj-no-pack @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 . ./lib diff --git a/home-manager/packages/scripts/deprecated/remove_start b/home-manager/packages/scripts/deprecated/remove_start index b745a4d1..1b4c4e6e 100755 --- a/home-manager/packages/scripts/deprecated/remove_start +++ b/home-manager/packages/scripts/deprecated/remove_start @@ -3,7 +3,7 @@ cd "$i" || exit 1 rm -r /tmp/scr mkdir /tmp/scr/ -star='#!/bin/sh\n\n# shellcheck source=/dev/null\n. /root/.local/lib/shell/lib' +star='#! /usr/bin/env dash\n\n# shellcheck source=/dev/null\n. /root/.local/lib/shell/lib' for i in "$1"/*;do awk ' diff --git a/home-manager/packages/scripts/deprecated/shell_script_os_setup/lo b/home-manager/packages/scripts/deprecated/shell_script_os_setup/lo index eb204b94..f61e297d 100755 --- a/home-manager/packages/scripts/deprecated/shell_script_os_setup/lo +++ b/home-manager/packages/scripts/deprecated/shell_script_os_setup/lo @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH stty -ctlecho -- cgit 1.4.1