1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-09 21:04:15 +00:00

shell linting

This commit is contained in:
deadc0de6
2023-01-28 11:22:19 +01:00
committed by deadc0de
parent 0c3fe55d47
commit 2d603f7e83
18 changed files with 249 additions and 242 deletions

View File

@@ -96,8 +96,11 @@ cd "${ddpath}" | ${bin} install -c "${cfg}" -f -p p1 --verbose | grep '^1 dotfil
touch "${DOTDROP_WORKDIR}"/new
echo "[+] re-install with clear-workdir in cli"
cd "${ddpath}" | printf "y\n" | ${bin} install -W -c "${cfg}" -p p1 --verbose
[ "$?" != "0" ] && exit 1
(
cd "${ddpath}"
printf "y\n" | ${bin} install -W -c "${cfg}" -p p1 --verbose
exit $?
)
[ ! -e "${tmpd}"/x ] && echo "f_x not installed" && exit 1
[ ! -h "${tmpd}"/x ] && echo "f_x not symlink" && exit 1
@@ -124,8 +127,11 @@ profiles:
dotfiles:
- f_x
_EOF
cd "${ddpath}" | printf "y\n" | ${bin} install -W -c "${cfg}" -p p1 --verbose
[ "$?" != "0" ] && exit 1
(
cd "${ddpath}"
printf "y\n" | ${bin} install -W -c "${cfg}" -p p1 --verbose
exit $?
)
[ ! -e "${tmpd}"/x ] && echo "f_x not installed" && exit 1
[ ! -h "${tmpd}"/x ] && echo "f_x not symlink" && exit 1