setup, fix a double newline instance.
This commit is contained in:
@@ -154,7 +154,6 @@ fi
|
||||
#echo "- Added!"
|
||||
|
||||
# Create basic layouts if configs do not exist and are requested.
|
||||
|
||||
if [[ -n "$create_general"
|
||||
|| -n "$create_workstation"
|
||||
|| -n "$create_server" ]]
|
||||
@@ -162,6 +161,7 @@ then
|
||||
sudo mkdir -pv "$config_dir"
|
||||
MARK1="BEGIN"
|
||||
MARK2="END"
|
||||
echo "Creating placeholder config files..."
|
||||
fi
|
||||
if [[ -n "$create_general" && ! -f "$general_config" ]]; then
|
||||
function print_general_contents {
|
||||
@@ -208,7 +208,12 @@ if [[ -n "$create_server" && ! -f "$server_config" ]]; then
|
||||
print_server_contents | sudo tee "$server_config"
|
||||
ls -lh "$server_config"
|
||||
fi
|
||||
if [[ -n "$create_general"
|
||||
|| -n "$create_workstation"
|
||||
|| -n "$create_server" ]]
|
||||
then
|
||||
echo " "
|
||||
fi
|
||||
|
||||
echo "Verifying this is the only run..."
|
||||
ps -ef | grep ansible-playbook | grep -v grep
|
||||
|
||||
Reference in New Issue
Block a user