fix: typo
This commit is contained in:
parent
2510409838
commit
e66264b532
@ -13,7 +13,7 @@ However, I will try to merge all PRs asap.
|
||||
pnpm install
|
||||
# - build the files
|
||||
# - install the font to: $HOME/Library/Fonts/sketchybar-app-font.ttf
|
||||
# - install the icon map script to: $HOME/.config/sketchybar/icon-map.sh
|
||||
# - install the icon map script to: $HOME/.config/sketchybar/icon_map.sh
|
||||
pnpm run build:install
|
||||
# - build the files
|
||||
# - install the font to: $HOME/Library/Fonts/sketchybar-app-font.ttf
|
||||
|
6
build.js
6
build.js
@ -41,15 +41,15 @@ ${iconMap
|
||||
${endMarker}`;
|
||||
|
||||
fs.writeFileSync(
|
||||
"./dist/icon-map.sh",
|
||||
"./dist/icon_map.sh",
|
||||
`#!/usr/bin/env bash
|
||||
${iconMapBashFn}
|
||||
`,
|
||||
"utf8"
|
||||
);
|
||||
|
||||
// chmod +x ./dist/icon-map.sh
|
||||
fs.chmodSync("./dist/icon-map.sh", 0o755);
|
||||
// chmod +x ./dist/icon_map.sh
|
||||
fs.chmodSync("./dist/icon_map.sh", 0o755);
|
||||
|
||||
return { iconMapBashFn };
|
||||
}
|
||||
|
@ -30,8 +30,8 @@ export function install(replaceInScriptPath) {
|
||||
fs.writeFileSync(pathToScript, newScriptContents, "utf8");
|
||||
} else {
|
||||
fs.copyFileSync(
|
||||
"./dist/icon-map.sh",
|
||||
`${process.env.HOME}/.config/sketchybar/icon-map.sh`
|
||||
"./dist/icon_map.sh",
|
||||
`${process.env.HOME}/.config/sketchybar/icon_map.sh`
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user