Somehow it seems to be working?

This commit is contained in:
2024-06-08 21:22:21 +02:00
parent 2a4c3cf853
commit bfe98bb424
2 changed files with 135 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
#!/bin/bash
# Function to check if a command exists
command_exists() {
command -v "$1" >/dev/null 2>&1
}
# Run the installation script
echo "Running installation script..."
./install_obsidian.sh
# Check if Obsidian is installed
echo "Checking Obsidian installation..."
if command_exists obsidian; then
echo "Obsidian installation: PASSED"
else
echo "Obsidian installation: FAILED"
exit 1
fi
# Check if core plugins are enabled
echo "Checking core plugins..."
CORE_PLUGINS=("core-plugin-id-1" "core-plugin-id-2")
for plugin in "${CORE_PLUGINS[@]}"; do
if [ -f "$HOME/.config/obsidian/plugins/$plugin" ]; then
echo "Core plugin $plugin: ENABLED"
else
echo "Core plugin $plugin: NOT ENABLED"
fi
done
# Check if community plugins are installed
echo "Checking community plugins..."
COMMUNITY_PLUGINS=("community-plugin-id-1" "community-plugin-id-2")
for plugin in "${COMMUNITY_PLUGINS[@]}"; do
if [ -d "$HOME/.config/obsidian/plugins/$plugin" ]; then
echo "Community plugin $plugin: INSTALLED"
else
echo "Community plugin $plugin: NOT INSTALLED"
fi
done
echo "All tests completed."