Skip to content

Commit b0c74d8

Browse files
committed
await find_lie_in_file in ensure_swap during upgrade
1 parent 71d245f commit b0c74d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/upgrade/platform_upgrade.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ async function exec(command, options = {}) {
171171

172172
async function ensure_swap() {
173173

174-
const swap_conf = fs_utils.find_line_in_file('/etc/fstab', 'swapfile');
174+
const swap_conf = await fs_utils.find_line_in_file('/etc/fstab', 'swapfile');
175175
if (swap_conf) {
176176
dbg.log0('UPGRADE: swap is already configured in /etc/fstab');
177177
return;

0 commit comments

Comments
 (0)