From 221798b2a59715631dbe8fca6d3eb8ec3f3ea660 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Sat, 26 Jan 2019 11:35:32 +1100 Subject: [PATCH] tomasino's ideas --- install.sh | 5 ++--- setup.sh | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) 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"