Filter for only .bash files and ignore dirs
This commit is contained in:
parent
fe0b25e0ae
commit
9f064da562
12
install.bash
12
install.bash
@ -33,11 +33,13 @@ fi
|
|||||||
mkdir -p "${SDTD_BIN_DIR}"
|
mkdir -p "${SDTD_BIN_DIR}"
|
||||||
|
|
||||||
# Deploy the scipts, removing .bash from the end of them
|
# Deploy the scipts, removing .bash from the end of them
|
||||||
for script in "${GIT_DIR}/Scripts/"*; do
|
for script in "${GIT_DIR}/Scripts/"*.bash; do
|
||||||
script_name="$(basename "${script}")"
|
if [[ -f "${script}" ]]; then
|
||||||
script_suffixless="${script_name%.bash}"
|
script_name="$(basename "${script}")"
|
||||||
cat "${script}" > "${SDTD_BIN_DIR}/${script_suffixless}"
|
script_suffixless="${script_name%.bash}"
|
||||||
chmod 740 "${SDTD_BIN_DIR}/${script_suffixless}"
|
cat "${script}" > "${SDTD_BIN_DIR}/${script_suffixless}"
|
||||||
|
chmod 740 "${SDTD_BIN_DIR}/${script_suffixless}"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user