about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-02-04 19:16:49 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-02-04 19:16:49 +0100
commitffbfd03e4aff77f6e30477fd5bec6b73cf01cc2b (patch)
tree7ffc7616c95d671b30612b8e305d099c5d16b76f
parent9b98e6f4eaea52f758bbbbf62a6ced20a6f40682 (diff)
downloadgalier-ffbfd03e4aff77f6e30477fd5bec6b73cf01cc2b.tar.gz
galier-ffbfd03e4aff77f6e30477fd5bec6b73cf01cc2b.zip
Fix style.css copy path
-rw-r--r--flake.nix2
-rwxr-xr-xgal2
2 files changed, 2 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 8c00da2..5fb1688 100644
--- a/flake.nix
+++ b/flake.nix
@@ -17,7 +17,7 @@
         cp style.css $out/share/gal
 
         sed -i 's:convert:${imagemagick}/bin/convert:g' $out/bin/gal
-        sed -i "s:style.css:$out/share/gal/style.css:g" $out/bin/gal
+        sed -i "s:cp style.css:cp $out/share/gal/style.css:g" $out/bin/gal
       '';
     };
 
diff --git a/gal b/gal
index c81308e..29a67ed 100755
--- a/gal
+++ b/gal
@@ -23,7 +23,7 @@ TITLE=${TITLE:-$(basename $OUTPUT)}
 mkdir -p $2/{photos,thumbs}
 
 ## Generate index.html menu file
-cat style.css > $OUTPUT/style.css
+cp style.css $OUTPUT
 echo "Generating index.html"
 
 cat > $OUTPUT/index.html <<EOF