diff --git a/install.sh b/install.sh index a1fe081..e74efaf 100755 --- a/install.sh +++ b/install.sh @@ -32,9 +32,8 @@ install_scripts() { full_path="${install_dir}/${f}" cp "$f" "$install_dir" printf "Copied %s to %s.\\n" "$f" "$full_path" - chmod +x "%s" "$full_path" - printf "Made %s executable.\\n" "$full_path" - printf "" + chmod +x "$full_path" + printf "Made %s executable.\\n\\n" "$full_path" fi done } diff --git a/setup.sh b/setup.sh index d1db5ee..507c46b 100755 --- a/setup.sh +++ b/setup.sh @@ -105,9 +105,9 @@ setup_keys() { key_type=$(head -n 1 "$key_path" \ | cut -f 2 -d ' ' \ | tr '[:upper:]' '[:lower:]') - test -d "$ssh_dir" || mkdir "$ssh_dir" - test -d "$ssh_host_dir" || mkdir "$ssh_host_dir" - printf "Key appears to be of type \"%s\"." "$key_type\\n" + test -d "$ssh_dir" || mkdir -p "$ssh_dir" + test -d "$ssh_host_dir" || mkdir -p "$ssh_host_dir" + printf "Key appears to be of type \"%s\".\\n" "$key_type" printf "Generating public key...\\n" ssh-keygen -y -f "$key_path" > "${ssh_host_dir}/id_${key_type}.pub" printf "Copying private key...\\n"