diff --git a/deploy-script.sh b/deploy-script.sh index f458a27..29a0c16 100755 --- a/deploy-script.sh +++ b/deploy-script.sh @@ -1,7 +1,7 @@ #!/bin/sh if [ -z "$1" ] ; then - echo "deploy-script.sh: Error - Must supply script as argument" + echo 'deploy-script.sh: Error - Must supply script as argument' exit else _script="$1" @@ -9,7 +9,7 @@ fi . ./config.sh -cat config.sh "$_script" | ssh root@"$_url" "cat >/tmp/deploy-script.sh" +cat config.sh "$_script" | ssh root@"$_url" 'cat >/tmp/deploy-script.sh' ssh root@"$_url" '/bin/bash /tmp/deploy-script.sh' ssh root@"$_url" '/bin/bash -c "rm /tmp/deploy-script.sh"' diff --git a/dev-setup/hugo.sh b/dev-setup/hugo.sh index d1bc607..0ba30ec 100755 --- a/dev-setup/hugo.sh +++ b/dev-setup/hugo.sh @@ -31,7 +31,7 @@ $_cmd_su "echo '/themes/' >> $_site_path/.gitignore" $_cmd_su "echo 'node_modules/' >> $_site_path/.gitignore" $_cmd_su "cd $_site_path && git add . && git commit -m 'initial commit'" -echo "#!/bin/sh" > "$_serve_script_path" +echo '#!/bin/sh' > "$_serve_script_path" echo 'echo "sudo required to bind to port 80"' >> "$_serve_script_path" echo "sudo hugo server -D --bind=0.0.0.0 --baseURL=http://$_url -p80" >> "$_serve_script_path" chown "$_user": "$_serve_script_path" @@ -62,9 +62,9 @@ else _theme_path='No theme installed' fi -echo "" -echo "#################################################################################################" -echo "" +echo '' +echo '#################################################################################################' +echo '' tee $_site_path/README.txt << EOF Site directory: $_site_path Theme directory: $_theme_path @@ -75,7 +75,7 @@ Build script: $_build_script_path Server script: $_serve_script_path Server URL: http://$_url EOF -echo "" -echo "#################################################################################################" -echo "" +echo '' +echo '#################################################################################################' +echo '' chown "$_user": "$_site_path/README.txt" diff --git a/dev-setup/node.sh b/dev-setup/node.sh index fec5566..1bb6e36 100755 --- a/dev-setup/node.sh +++ b/dev-setup/node.sh @@ -5,7 +5,7 @@ set -e if command -v apt-get ; then apt-get -y install gnupg else - echo "Error - no package installer found." + echo 'Error - no package installer found.' exit 1 fi @@ -17,5 +17,5 @@ tar -xJvf node-"$_node_version"-"$_node_distro".tar.xz -C /usr/local/lib/nodejs echo "PATH=/usr/local/lib/nodejs/node-$_node_version-$_node_distro/bin:$PATH" >> /home/"$_user"/.profile curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - -echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list +echo 'deb https://dl.yarnpkg.com/debian/ stable main' | sudo tee /etc/apt/sources.list.d/yarn.list apt-get update && sudo apt-get -y install yarn diff --git a/dev-setup/nvim.sh b/dev-setup/nvim.sh index d497b9f..9e6e1f5 100755 --- a/dev-setup/nvim.sh +++ b/dev-setup/nvim.sh @@ -17,7 +17,7 @@ if command -v apt-get ; then mv /tmp/neovim/runtime /usr/local/share/nvim/runtime mv /tmp/neovim/build/bin/nvim /usr/local/bin/nvim else - echo "Error - no package installer found." + echo 'Error - no package installer found.' exit 1 fi diff --git a/user.sh b/user.sh index 7939c0e..58062dc 100755 --- a/user.sh +++ b/user.sh @@ -14,7 +14,7 @@ chage -d 0 "$_user" if command -v apt-get ; then apt-get update && apt-get -y upgrade && apt-get -y install sudo git else - echo "Error - no package installer found." + echo 'Error - no package installer found.' exit 1 fi