Skip to content
This repository was archived by the owner on Nov 23, 2021. It is now read-only.

Commit ef413f1

Browse files
authored
Merge pull request #3 from Dalgar/master
Bash fixes in backuppackages.sh
2 parents 70fadd1 + c804f19 commit ef413f1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

backuppackages.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
@echo off
1+
#!/usr/bin/env bash
22

3-
pushd %~dp0
3+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44

5-
call env.bat
5+
pushd $DIR
6+
source env.sh
67

7-
%ATOM_BIN%\resources\app\apm\bin\apm list --installed --bare %ATOM_HOME%\packages.lst
8+
$ATOM_BIN/resources/app/apm/bin/apm list --installed --bare | tee $ATOM_HOME/packages.lst
89

910
popd

0 commit comments

Comments
 (0)