erratum
This commit is contained in:
parent
3ffd5c19b2
commit
29d0344081
8
Makefile
8
Makefile
@ -1,7 +1,15 @@
|
|||||||
install:
|
install:
|
||||||
@echo "Installing bob"
|
@echo "Installing bob"
|
||||||
cp bob /usr/local/bin
|
cp bob /usr/local/bin
|
||||||
|
cp bob2 /usr/local/bin
|
||||||
|
cp -r lib /usr/local/lib/bob
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@echo "Uninstalling bob"
|
@echo "Uninstalling bob"
|
||||||
rm /usr/local/bin/bob
|
rm /usr/local/bin/bob
|
||||||
|
rm /usr/local/bin/bob2
|
||||||
|
rm -r /usr/local/lib/bob
|
||||||
|
|
||||||
|
|
||||||
|
test:
|
||||||
|
/bin/sh ./test/test.sh
|
8
bob
8
bob
@ -89,7 +89,7 @@ _get_last_modif_date()
|
|||||||
|
|
||||||
publish()
|
publish()
|
||||||
{
|
{
|
||||||
delete_posts
|
# delete_posts
|
||||||
|
|
||||||
# Collect all configuration parameters so that the regex are only evaluted
|
# Collect all configuration parameters so that the regex are only evaluted
|
||||||
# once per publication. Done to improve the speed of the publication
|
# once per publication. Done to improve the speed of the publication
|
||||||
@ -119,7 +119,7 @@ publish()
|
|||||||
# Append the names to the array
|
# Append the names to the array
|
||||||
posts_names+=(${BASH_REMATCH[1]})
|
posts_names+=(${BASH_REMATCH[1]})
|
||||||
fi
|
fi
|
||||||
_create_posts "./bases/${list[i]}" "$blog_name" "$lang" "$dark"
|
_create_posts "./draft/${list[i]}" "$blog_name" "$lang" "$dark"
|
||||||
done
|
done
|
||||||
|
|
||||||
# function to update the index.html
|
# function to update the index.html
|
||||||
@ -269,7 +269,7 @@ init()
|
|||||||
echo "lang:$lang" >> .blog.conf
|
echo "lang:$lang" >> .blog.conf
|
||||||
echo "Activate dark mode : (y/N)"
|
echo "Activate dark mode : (y/N)"
|
||||||
read dark
|
read dark
|
||||||
if [ -z $lang ]; then
|
if [ -z $dark ]; then
|
||||||
dark=n
|
dark=n
|
||||||
fi
|
fi
|
||||||
echo "dark:$dark" >> .blog.conf
|
echo "dark:$dark" >> .blog.conf
|
||||||
@ -438,7 +438,7 @@ _index()
|
|||||||
dark=$3
|
dark=$3
|
||||||
css="./css/indexstyle.css"
|
css="./css/indexstyle.css"
|
||||||
|
|
||||||
if [ $3 -eq "y" ]; then
|
if [[ $dark -eq "y" ]]; then
|
||||||
css="./css/indexstyle.dark.css"
|
css="./css/indexstyle.dark.css"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user