Skip to content

Commit

Permalink
Fix: script ddwrt-gui-*.sh cwd.
Browse files Browse the repository at this point in the history
Fix current working directory (to fmk directory) of ddwrt-gui-*.sh.
  • Loading branch information
Senorsen committed Oct 20, 2018
1 parent 5e74fe9 commit 2344e2e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ddwrt-gui-extract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ then
SUDO="sudo"
fi

DIR=$(readlink -f $DIR)
OUT=$(readlink -f $OUT)

# Make sure we're operating out of the FMK directory
cd $(dirname $(readlink -f $0))

eval $(cat shared-ng.inc)
HTTPD="$DIR/usr/sbin/httpd"
WWW="$DIR/etc/www"
Expand Down
6 changes: 6 additions & 0 deletions ddwrt-gui-rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ then
SUDO="sudo"
fi

DIR=$(readlink -f $DIR)
OUT=$(readlink -f $OUT)

# Make sure we're operating out of the FMK directory
cd $(dirname $(readlink -f $0))

eval $(cat shared-ng.inc)
HTTPD="$DIR/usr/sbin/httpd"
WWW="$DIR/etc/www"
Expand Down

0 comments on commit 2344e2e

Please sign in to comment.