Skip to content

Commit

Permalink
Added install script
Browse files Browse the repository at this point in the history
  • Loading branch information
tsbarnes committed Nov 23, 2020
1 parent 0ce9324 commit 003b2af
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

DRY_RUN="false"

for option in "$@"; do
case $option in
"--dry-run")
DRY_RUN="true"
;;
*)
echo "Unknown option: $option"
exit 1
;;
esac
done

if [ "$USER" = "root" ]; then
INSTALL_PATH="$HOME/.local"
else
INSTALL_PATH="/usr/local"
fi

if [ "$DRY_RUN" = "false" ]; then
cp Daniela.colors "$INSTALL_PATH/color-schemes/"
cp -r com.tsbarnes.Daniela "$INSTALL_PATH/plasma/look-and-feel/"
echo "Installation complete!"
else
echo cp Daniela.colors "$INSTALL_PATH/color-schemes/"
echo cp -r com.tsbarnes.Daniela "$INSTALL_PATH/plasma/look-and-feel/"
echo "Dry run, nothing installed."
fi

exit 0

0 comments on commit 003b2af

Please sign in to comment.