From 491402125367f680bde0dcb034bae420c55aa2a5 Mon Sep 17 00:00:00 2001 From: Tobias Rueetschi Date: Wed, 31 Oct 2018 13:57:45 +0100 Subject: [PATCH] do not overwrite an existing file --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 3806027..32cbfac 100755 --- a/install.sh +++ b/install.sh @@ -20,7 +20,7 @@ echo "Copying systemd service file..." cp systemd/lenovo_fix.service /etc/systemd/system echo "Building virtualenv..." -cp requirements.txt lenovo_fix.py mmio.py "$INSTALL_DIR" +cp -n requirements.txt lenovo_fix.py mmio.py "$INSTALL_DIR" cd "$INSTALL_DIR" /usr/bin/python3 -m venv venv . venv/bin/activate