a bit of shellcheck

This commit is contained in:
Yann Esposito (Yogsototh) 2020-02-10 09:42:17 +01:00
parent 73c6c68d92
commit adda573e72
Signed by untrusted user who does not match committer: yogsototh
GPG Key ID: 7B19A4C650D59646
13 changed files with 18 additions and 18 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd $(git rev-parse --show-toplevel) cd "$(git rev-parse --show-toplevel)" || exit 1
echo "* org-publish" echo "* org-publish"
emacs \ emacs \
--load project.el \ --load project.el \

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd $(git rev-parse --show-toplevel) cd "$(git rev-parse --show-toplevel)" || exit 1
echo -n "* Clean site cache" echo -n "* Clean site cache"
rm -rf _site rm -rf _site
rm -rf _cache rm -rf _cache

View File

@ -1,8 +1,8 @@
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i zsh #!nix-shell -i bash
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz" #!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
#!nix-shell -p minify #!nix-shell -p minify
# nix-shell -p nodePackages.clean-css # nix-shell -p nodePackages.clean-css
minify $1 > $2 minify "$1" > "$2"

View File

@ -1,8 +1,8 @@
#!/usr/bin/env zsh #!/usr/bin/env bash
cd $(git rev-parse --show-toplevel) cd "$(git rev-parse --show-toplevel)" || exit 1
rootdir=${0:h} rootdir=${0:h}
echo $rootdir echo "$rootdir"
./engine/clean.sh ./engine/clean.sh
./engine/build.sh ./engine/build.sh

View File

@ -2,12 +2,12 @@
#!nix-shell -i zsh #!nix-shell -i zsh
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz" #!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
cd $(git rev-parse --show-toplevel) cd "$(git rev-parse --show-toplevel)" || exit 1
webdir="_site" webdir="_site"
debug () { debug () {
print -- $* >/dev/null print -- "$@" >/dev/null
} }
if (($#>0)); then if (($#>0)); then
@ -24,7 +24,7 @@ trans(){
print -- "Duplicate HTML by themes" print -- "Duplicate HTML by themes"
for fic in $filelist; do for fic in $filelist; do
if echo $fic|egrep -- '-(mk|min|sci|modern).html$'>/dev/null; then if echo $fic|grep -E -- '-(mk|min|sci|modern).html$'>/dev/null; then
continue continue
fi fi
print -n -- "$fic " print -n -- "$fic "

View File

@ -2,7 +2,7 @@
#!nix-shell -i zsh #!nix-shell -i zsh
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz" #!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
cd $(git rev-parse --show-toplevel) cd "$(git rev-parse --show-toplevel)" || exit 1
# Directory # Directory
webdir="_site" webdir="_site"
postsdir="$webdir/posts" postsdir="$webdir/posts"

View File

@ -2,7 +2,7 @@
#!nix-shell -i zsh #!nix-shell -i zsh
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz" #!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
cd $(git rev-parse --show-toplevel) cd "$(git rev-parse --show-toplevel)" || exit 1
webdir="_site" webdir="_site"
retrieve_classes_in_html () { retrieve_classes_in_html () {

View File

@ -2,7 +2,7 @@
#!nix-shell -i zsh #!nix-shell -i zsh
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz" #!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
cd $(git rev-parse --show-toplevel) cd "$(git rev-parse --show-toplevel)" || exit 1
webdir="_site" webdir="_site"
debug () { debug () {

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd $(git rev-parse --show-toplevel) cd "$(git rev-parse --show-toplevel)" || exit 1
echo "Optim HTML size" echo "Optim HTML size"
./engine/optim-html.sh ./engine/optim-html.sh
echo "Gen themes clones" echo "Gen themes clones"

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd $(git rev-parse --show-toplevel) cd "$(git rev-parse --show-toplevel)" || exit 1
cd _site && sws -d --port 3001 . cd _site && sws -d --port 3001 .

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd $(git rev-parse --show-toplevel) cd "$(git rev-parse --show-toplevel)" || exit 1
signer=yann@esposito.host signer=yann@esposito.host
gpg --local-user $signer --output project.el.sig --detach-sign project.el gpg --local-user $signer --output project.el.sig --detach-sign project.el

View File

@ -1,6 +1,6 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
cd $(git rev-parse --show-toplevel) cd "$(git rev-parse --show-toplevel)" || exit 1
rootdir=${0:h} rootdir=${0:h}
echo $rootdir echo $rootdir

View File

@ -2,7 +2,7 @@
#!nix-shell -i zsh #!nix-shell -i zsh
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz" #!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
cd $(git rev-parse --show-toplevel) cd "$(git rev-parse --show-toplevel)" || exit 1
webdir="_site" webdir="_site"
sizeof() { sizeof() {