Add Bitwarden for Mac

This commit is contained in:
greg-compass
2022-11-10 11:58:49 -06:00
parent f0a50305b8
commit 8a78e58f04
4 changed files with 43 additions and 4 deletions
+9 -3
View File
@@ -27,8 +27,14 @@ popd > /dev/null
rm -r "${dest}"
if [ "$(uname -s)" == "Darwin" ]; then
for app in ~/.nix-profile/Applications/*.app; do
echo "Copying '${app}' to Applications"
cp -r "${app}" "${HOME}/Applications"
cd ~/.nix-profile/Applications
for app in *.app; do
echo "Updating permissions on '${app}'"
chmod -R u+w "${HOME}/Applications/${app}"
echo "Copying new version to Applications"
cp -r "${app}" "${HOME}/Applications" 2>&1 > /dev/null || true
if [ "$?" != "0" ]; then
echo "An error occurred, proceeding anyway"
fi
done
fi