mirror of
https://github.com/arkenfox/user.js.git
synced 2025-05-19 07:07:10 +02:00
Merge 0b656af516
into 82d20c328d
This commit is contained in:
commit
c1ac665c76
1 changed files with 6 additions and 2 deletions
|
@ -10,8 +10,12 @@ echo -e "\nThis script should be run from your Firefox profile directory.\n"
|
||||||
|
|
||||||
currdir=$(pwd)
|
currdir=$(pwd)
|
||||||
|
|
||||||
## get the full path of this script (greadlink for Mac, readlink for Linux)
|
realpath_osx() {
|
||||||
scriptfullpath=$(greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null || readlink -f "${BASH_SOURCE[0]}")
|
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
|
||||||
|
}
|
||||||
|
|
||||||
|
## get the full path of this script (readlink for readlink for Linux)
|
||||||
|
scriptfullpath=$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || realpath "$0")
|
||||||
|
|
||||||
## change directory to the Firefox profile directory
|
## change directory to the Firefox profile directory
|
||||||
cd "$(dirname "${scriptfullpath}")"
|
cd "$(dirname "${scriptfullpath}")"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue