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
cd $(git rev-parse --show-toplevel)
cd "$(git rev-parse --show-toplevel)" || exit 1
echo "* org-publish"
emacs \
--load project.el \

View File

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

View File

@ -1,8 +1,8 @@
#!/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 -p minify
# 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}
echo $rootdir
echo "$rootdir"
./engine/clean.sh
./engine/build.sh

View File

@ -2,12 +2,12 @@
#!nix-shell -i zsh
#!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"
debug () {
print -- $* >/dev/null
print -- "$@" >/dev/null
}
if (($#>0)); then
@ -24,7 +24,7 @@ trans(){
print -- "Duplicate HTML by themes"
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
fi
print -n -- "$fic "

View File

@ -2,7 +2,7 @@
#!nix-shell -i zsh
#!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
webdir="_site"
postsdir="$webdir/posts"

View File

@ -2,7 +2,7 @@
#!nix-shell -i zsh
#!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"
retrieve_classes_in_html () {

View File

@ -2,7 +2,7 @@
#!nix-shell -i zsh
#!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"
debug () {

View File

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

View File

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

View File

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

View File

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

View File

@ -2,7 +2,7 @@
#!nix-shell -i zsh
#!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"
sizeof() {