a bit of shellcheck
This commit is contained in:
parent
73c6c68d92
commit
adda573e72
13 changed files with 18 additions and 18 deletions
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 "
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 .
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue