diff --git a/install.bash b/install.bash index 5f4d433..46804ca 100755 --- a/install.bash +++ b/install.bash @@ -33,11 +33,13 @@ fi mkdir -p "${SDTD_BIN_DIR}" # Deploy the scipts, removing .bash from the end of them -for script in "${GIT_DIR}/Scripts/"*; do - script_name="$(basename "${script}")" - script_suffixless="${script_name%.bash}" - cat "${script}" > "${SDTD_BIN_DIR}/${script_suffixless}" - chmod 740 "${SDTD_BIN_DIR}/${script_suffixless}" +for script in "${GIT_DIR}/Scripts/"*.bash; do + if [[ -f "${script}" ]]; then + script_name="$(basename "${script}")" + script_suffixless="${script_name%.bash}" + cat "${script}" > "${SDTD_BIN_DIR}/${script_suffixless}" + chmod 740 "${SDTD_BIN_DIR}/${script_suffixless}" + fi done