Files
nix-files/push.sh
2025-01-17 00:08:42 +01:00

13 lines
160 B
Bash
Executable File

#!/bin/sh
if [ -z "$1" ]
then
echo "No commit message supplied"
exit 1
fi
sudo cp -r /etc/nixos/* .
git add *
git commit -m "$1"
git push origin pc