Files
wechat-dump/compatibility.sh
T
Fei Yuan fd64ea52d7 Allow android-interact.sh to be run in another directory
In order to source compatibility.sh, the working directory must be
changed to the directory of the script.  But finding the script's
directory requires $REALPATH, which is defined in compatibility.sh.

To break the cycle, the script now makes use of Python's
os.path.realpath.
2016-03-18 03:08:10 -04:00

14 lines
232 B
Bash
Executable File

#!/bin/bash -e
# $File: compatibility.sh
# $Date: Tue Jun 16 22:23:36 2015 +0800
# Author: Vury Leo <i[at]vuryleo[dot]com>
if [ `uname` = 'Darwin' ]; then
GREP='grep -E'
MD5SUM='md5'
else
GREP='grep -E'
MD5SUM='md5sum'
fi