mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 14:22:33 +03:00
fix: css renaming for deploy
This commit is contained in:
parent
424a5ff4df
commit
21cd94b93e
@ -57,16 +57,16 @@ func createCssMap() map[string]string {
|
|||||||
// Renames file by paths.
|
// Renames file by paths.
|
||||||
func renameFile(oldPath, newPath string) {
|
func renameFile(oldPath, newPath string) {
|
||||||
// rename the file
|
// rename the file
|
||||||
err := os.Rename(removeFirstChar(oldPath), removeFirstChar(newPath))
|
err := os.Rename(oldPath, newPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Removes first character from string.
|
// Removes first character from string.
|
||||||
func removeFirstChar(s string) string {
|
// func removeFirstChar(s string) string {
|
||||||
return s[1:]
|
// return s[1:]
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Generates a random string.
|
// Generates a random string.
|
||||||
func randomString(length int) string {
|
func randomString(length int) string {
|
||||||
|
Loading…
Reference in New Issue
Block a user