mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 21:04:15 +00:00
shell linting
This commit is contained in:
14
tests-ng/clear-workdir.sh
vendored
14
tests-ng/clear-workdir.sh
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user