diff options
author | ene <ene@sils.li> | 2023-02-25 08:10:59 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-02-25 08:10:59 +0100 |
commit | 05e674a5d1a965040a6e030c617840c9d567f173 (patch) | |
tree | 113eb004a222be4f9f29f4df04582a19ffdc4052 /home-manager/packages/scripts/deprecated | |
parent | Feat(packages): Add my scripts (diff) | |
download | nixos-config-05e674a5d1a965040a6e030c617840c9d567f173.tar.gz nixos-config-05e674a5d1a965040a6e030c617840c9d567f173.zip |
Fix(packages): Don't use hardcoded library paths
Diffstat (limited to 'home-manager/packages/scripts/deprecated')
12 files changed, 16 insertions, 16 deletions
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 |